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
/
packages
/
checkout
/
totals
/
subtotal
/
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 Subtotal from '../'; export default { title: 'WooCommerce Blocks/@blocks-checkout/Subtotal', component: Subtotal, }; export const Default = () => { const currency = currencyKnob(); const totalItems = text( 'Total items', '1000' ); const totalItemsTax = text( 'Total items tax', '200' ); return ( <Subtotal currency={ currency } values={ { total_items: totalItems, total_items_tax: totalItemsTax, } } /> ); };