import { makeStyles } from '@mui/styles'; import { type PropsWithChildren } from 'react'; const useStyles = makeStyles( theme => ({ root: { padding: theme.spacing.unit * 2, position: 'relative', backgroundColor: theme.colors.background.active, color: theme.colors.text, '& h1': { fontWeight: 'normal', margin: 0, fontSize: '1.5em', display: 'inline' }, '& p': { margin: 0 } } }), { name: 'PageHeader' } ); const PageHeader = ({ children }: PropsWithChildren) => { const classes = useStyles(); return
{children}
; }; export default PageHeader;