feat(web): add reusable admin form dialog

This commit is contained in:
2026-05-09 20:15:35 +08:00
parent c0335bd5d0
commit a5e66e79cd
49 changed files with 6013 additions and 1108 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { ReactNode } from 'react';
export function PageHeader(props: { eyebrow: string; title: string; description?: string; action?: ReactNode }) {
return (
<div className="pageHeader">
<div>
<p className="eyebrow">{props.eyebrow}</p>
<h1>{props.title}</h1>
{props.description && <p>{props.description}</p>}
</div>
{props.action && <div className="pageHeaderAction">{props.action}</div>}
</div>
);
}