import * as _Icon from '@bnb-chain/icons'; import { Flex, Text } from '@chakra-ui/react'; import { theme } from '../../modules/theme'; const Icon = _Icon; /* eslint-disable import/no-anonymous-default-export */ export default { title: 'Components/Atoms/Icon', component: Icon, }; const Group = ({ icons }: { icons: string[] }) => { return ( {icons.map((it) => { const Svg = Icon[it as keyof typeof Icon]; return (
{it.replace('Icon', '')}
); })}
); }; export const Default = () => { return ( ); };