import Box from "../Box/Box"; import Flex from "../Box/Flex"; import Text from "../Text/Text"; import Svg from "./Svg"; // eslint-disable-next-line import/no-useless-path-segments import { CheckmarkCircleIcon, CheckmarkCircleFillIcon } from "../Svg"; import AnimatedIconComponent from "./AnimatedIconComponent"; export default { title: "Components/Svg Icons", component: Svg, argTypes: {}, }; export const Default: React.FC = () => { return (
); }; // @ts-ignore const modules = import.meta.glob("./Icons/*.tsx", { eager: true }); const components = Object.keys(modules).reduce((accum, path) => { const file = path.substring(2).replace(".tsx", ""); return { ...accum, [file]: modules[path], }; }, {}); export const Icons: React.FC = () => { return ( {Object.keys(components).map((file) => { const Icon = components[file].default; return ( {file} ); })} ); }; const AnimatedIconComponentTemplate: React.FC = (args) => { return ( ); }; export const AnimatedIconComponentStory = AnimatedIconComponentTemplate.bind({}); AnimatedIconComponentStory.args = { isActive: false, };