mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-06-28 12:19:11 +00:00
feat: Add different components used for app
This commit is contained in:
parent
ecfac890de
commit
6ea6c3e317
5 changed files with 243 additions and 3 deletions
21
components/page-header.tsx
Normal file
21
components/page-header.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
type Props = {
|
||||
title: string;
|
||||
description?: string;
|
||||
actions?: React.ReactNode[];
|
||||
};
|
||||
|
||||
export const PageHeader: React.FC<Props> = ({ title, description, actions }) => {
|
||||
return (
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="space-y-1">
|
||||
<h2 className="text-2xl font-semibold tracking-tight">{title}</h2>
|
||||
<p className="text-sm text-zinc-500 dark:text-zinc-400">{description}</p>
|
||||
</div>
|
||||
<ul className="flex items-center justify-between gap-4">
|
||||
{(actions ?? []).map((action, i) => (
|
||||
<li key={i}>{action}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue