import { makeStyles } from '@mui/styles'; import { type PropsWithChildren } from 'react'; const useStyles = makeStyles( theme => ({ root: { display: 'flow-root', borderLeft: `${theme.spacing.unit / 2}px solid ${theme.colors.badges.deprecated}`, backgroundColor: theme.colors.background.active, padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px`, margin: `${theme.spacing.unit * 2}px 0` }, title: { margin: `${theme.spacing.unit}px 0` } }), { name: 'DeprecationNotice' } ); const DeprecationNotice = ({ children }: PropsWithChildren) => { const classes = useStyles(); return (

Deprecated

{children}
); }; export default DeprecationNotice;