initial: standalone repo from monorepo split
This commit is contained in:
19
src/components/ui/page-header.tsx
Normal file
19
src/components/ui/page-header.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
interface PageHeaderProps {
|
||||
title: string;
|
||||
description?: string;
|
||||
action?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function PageHeader({ title, description, action }: PageHeaderProps) {
|
||||
return (
|
||||
<div className="flex items-start justify-between">
|
||||
<div>
|
||||
<h1 className="text-xl font-bold text-surface-900 dark:text-surface-100">{title}</h1>
|
||||
{description && (
|
||||
<p className="mt-1 text-sm text-surface-500 dark:text-surface-400">{description}</p>
|
||||
)}
|
||||
</div>
|
||||
{action && <div>{action}</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user