import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Col, Container, Row } from 'components/layout'; import { Text } from 'components'; import { Icon, icons, IconName } from './Icon'; type ComponentType = typeof Icon; const options = Object.keys(icons) as IconName[]; export default { title: 'Design System/Icon', component: Icon, argTypes: { name: { type: 'string', name: 'name', options, control: { type: 'select' }, }, }, } as ComponentMeta; export const IconList: ComponentStory = () => { return ( {options.map((name) => ( {name} ))} ); }; export const Interactive: ComponentStory = (args) => { const { name } = args; return ( ); }; Interactive.args = { name: 'account', };