| 12345678910111213141516171819202122 |
- 'use client';
- import { ThemeToggle } from './theme-toggle';
- interface HeaderProps {
- title: string;
- description?: string;
- }
- export function Header({ title, description }: HeaderProps) {
- return (
- <header className="sticky top-0 z-30 flex h-16 items-center gap-4 border-b border-border bg-background px-6">
- <div className="flex-1">
- <h1 className="text-2xl font-semibold">{title}</h1>
- {description && (
- <p className="text-sm text-muted-foreground">{description}</p>
- )}
- </div>
- <ThemeToggle />
- </header>
- );
- }
|