import React from 'react'; import { styled, TypographyProps } from '@mui/material'; import Typography from '@/components/Typography'; export const TypographyContent = styled('div')({ display: 'flex', flexDirection: 'column', width: '100%', }); export const TypographyItem = styled('div')({ display: 'flex', flexWrap: 'wrap', marginBottom: '24px', }); export const TypographyTitle = styled(Typography)(({ theme }) => ({ width: 200, color: theme.palette.lunit_token.core.text_light, })); export const TypographyDummy = styled(Typography)({ width: 560, }); type ReadableArray = Array | ReadonlyArray; interface TypographyGroupProps { heading: React.ReactNode; dummy: React.ReactNode; variants: ReadableArray>; } const TypographyGroup = ({ heading, dummy, variants }: TypographyGroupProps) => { return ( <> {heading} {variants.map((variant) => { return ( {variant} {dummy} ); })} ); }; export default TypographyGroup;