2020-12-14 08:15:50 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { text } from '@storybook/addon-knobs';
|
|
|
|
import { currencyKnob } from '@woocommerce/knobs';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import TotalsTaxes from '../';
|
|
|
|
|
|
|
|
export default {
|
2021-01-20 20:35:53 +00:00
|
|
|
title: 'WooCommerce Blocks/@blocks-checkout/TotalsTaxes',
|
2020-12-14 08:15:50 +00:00
|
|
|
component: TotalsTaxes,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Default = () => {
|
|
|
|
const currency = currencyKnob();
|
|
|
|
const totalTaxes = text( 'Total taxes', '1000' );
|
|
|
|
|
|
|
|
return (
|
|
|
|
<TotalsTaxes
|
|
|
|
currency={ currency }
|
|
|
|
values={ {
|
|
|
|
total_tax: totalTaxes,
|
|
|
|
} }
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|