2022-09-04 09:59:28 -05:00

14 lines
358 B
TypeScript

import Typography, { TypographyProps } from '@mui/material/Typography'
import { funAnimalName } from 'fun-animal-names'
interface PeerNameDisplayProps extends TypographyProps {
children: string
}
export const PeerNameDisplay = ({
children,
...rest
}: PeerNameDisplayProps) => {
return <Typography {...rest}>{funAnimalName(children)}</Typography>
}