23 lines
438 B
TypeScript
23 lines
438 B
TypeScript
|
|
import { PageHeader } from "./page-header";
|
||
|
|
|
||
|
|
interface DataPageLayoutProps {
|
||
|
|
title: string;
|
||
|
|
description?: string;
|
||
|
|
action?: React.ReactNode;
|
||
|
|
children: React.ReactNode;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function DataPageLayout({
|
||
|
|
title,
|
||
|
|
description,
|
||
|
|
action,
|
||
|
|
children,
|
||
|
|
}: DataPageLayoutProps) {
|
||
|
|
return (
|
||
|
|
<div className="space-y-6">
|
||
|
|
<PageHeader title={title} description={description} action={action} />
|
||
|
|
{children}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|