import { ComponentStory , ComponentMeta } from '@storybook/react' ; import { cartItems } from '../../../stub/cart-items' ; import { OrderSummary } from './OrderSummary' ; export default { title : 'Components/OrderSummary' , component : OrderSummary , } as ComponentMeta < typeof OrderSummary > ; export const Default = ( args ) => < OrderSummary { ... args } / > ; Default . args = { cartItems , } ;