Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
base
/
components
/
cart-checkout
/
totals
/
footer-item
/
stories
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { text } from '@storybook/addon-knobs'; import { currencyKnob } from '@woocommerce/knobs'; /** * Internal dependencies */ import TotalsFooterItem from '../'; export default { title: 'WooCommerce Blocks/@base-components/cart-checkout/totals/TotalsFooterItem', component: TotalsFooterItem, }; export const Default = () => { const currency = currencyKnob(); const totalPrice = text( 'Total price', '1200' ); const totalTax = text( 'Total tax', '200' ); return ( <TotalsFooterItem currency={ currency } values={ { total_price: totalPrice, total_tax: totalTax, } } /> ); };