feat(web): add reusable admin form dialog
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user