import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import data from './mock'; import PlanCard from './PlanCard'; export default { title: 'Ui/PlanCard', component: PlanCard, argTypes: { onChange: { action: 'onChange value returned', }, }, } as ComponentMeta; const Template: ComponentStory = (args) => (
); export const PlanCardStory = Template.bind({}); PlanCardStory.args = data.success; export const CurrentPlanStory = Template.bind({}); CurrentPlanStory.args = { ...data.success, isCurrentPlan: true };