import type { Theme } from '@mui/material'; import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { makeStyles } from 'tss-react/mui'; import LoadingSkeleton from '.'; const useStyles = makeStyles()((theme: Theme) => ({ root: { background: theme.palette.divider, borderRadius: theme.spacing(0.5), height: theme.spacing(5), width: theme.spacing(30) } })); export default { argTypes: { height: { control: 'number' }, width: { control: 'number' } }, component: LoadingSkeleton, title: 'Loading Skeleton' } as ComponentMeta; const TemplateLoadingSkeleton: ComponentStory = ( args ) => ; export const PlaygroundLoadingSkeleton = TemplateLoadingSkeleton.bind({}); PlaygroundLoadingSkeleton.args = { height: 50, width: 400 }; export const normal = (): JSX.Element => ( ); const Custom = (): JSX.Element => { const { classes } = useStyles(); return ; }; export const custom = (): JSX.Element => ;