File "index.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-blocks/packages/checkout/totals/taxes/stories/index.js
File size: 529 bytes
MIME-type: text/x-java
Charset: utf-8

/**
 * External dependencies
 */
import { text } from '@storybook/addon-knobs';
import { currencyKnob } from '@woocommerce/knobs';

/**
 * Internal dependencies
 */
import TotalsTaxes from '../';

export default {
	title: 'WooCommerce Blocks/@blocks-checkout/TotalsTaxes',
	component: TotalsTaxes,
};

export const Default = () => {
	const currency = currencyKnob();
	const totalTaxes = text( 'Total taxes', '1000' );

	return (
		<TotalsTaxes
			currency={ currency }
			values={ {
				total_tax: totalTaxes,
			} }
		/>
	);
};