import styles from './PageFrame.module.css' interface Props { title: string children: React.ReactNode footer?: React.ReactNode headerAction?: React.ReactNode headerActionLeft?: React.ReactNode overlay?: React.ReactNode } export default function PageFrame({ title, children, footer, headerAction, headerActionLeft, overlay }: Props) { return (

{title}

{headerAction &&
{headerAction}
} {headerActionLeft &&
{headerActionLeft}
}
{children}
{footer &&
{footer}
} {overlay &&
{overlay}
}
) }