import { ComponentStory , ComponentMeta } from '@storybook/react' ; import { SuccessPage } from './SuccessPage' ; export default { title : 'Pages/SuccessPage' , component : SuccessPage , parameters : { layout : 'fullscreen' , design : { type : 'figspec' , url : 'https://www.figma.com/file/3Q1HTCalD0lJnNvcMoEw1x/Mealdrop?node-id=426%3A3444' , } , } , } as ComponentMeta < typeof SuccessPage > ; const Template = ( ) => < SuccessPage />; export const Default = Template . bind ( { } ) ; Default . parameters = { store : { initialState : { cart : { visible : false , items : [ { id : 2 , name : 'Fries' , description : 'Fried french fries' , price : 2.5 , quantity : 2 , } , { id : 1 , name : 'Cheeseburger' , description : 'Nice grilled burger with cheese' , price : 8.5 , quantity : 1 , } , ] , } , } , } , } ;