2026-05-26 20:28:49 -05:00
|
|
|
import styles from './PageFrame.module.css'
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
title: string
|
|
|
|
|
children: React.ReactNode
|
|
|
|
|
footer?: React.ReactNode
|
2026-05-28 00:34:23 -05:00
|
|
|
headerAction?: React.ReactNode
|
|
|
|
|
overlay?: React.ReactNode
|
2026-05-26 20:28:49 -05:00
|
|
|
}
|
|
|
|
|
|
2026-05-28 00:34:23 -05:00
|
|
|
export default function PageFrame({ title, children, footer, headerAction, overlay }: Props) {
|
2026-05-26 20:28:49 -05:00
|
|
|
return (
|
|
|
|
|
<div className={styles.frame}>
|
|
|
|
|
<header className={styles.header}>
|
|
|
|
|
<h1 className={styles.title}>{title}</h1>
|
|
|
|
|
<div className={styles.rule} role="separator" />
|
2026-05-28 00:34:23 -05:00
|
|
|
{headerAction && <div className={styles.headerAction}>{headerAction}</div>}
|
2026-05-26 20:28:49 -05:00
|
|
|
</header>
|
|
|
|
|
<div className={styles.content}>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
{footer && <div className={styles.footer}>{footer}</div>}
|
2026-05-28 00:34:23 -05:00
|
|
|
{overlay && <div className={styles.overlay}>{overlay}</div>}
|
2026-05-26 20:28:49 -05:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|