mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-07-26 07:48:13 +00:00
31 lines
884 B
TypeScript
31 lines
884 B
TypeScript
import { Search } from 'lucide-react';
|
|
import { Input } from '@/components/ui/input';
|
|
import { ThemeToggle } from './theme-toggle';
|
|
|
|
interface HeaderProps {
|
|
title: string;
|
|
}
|
|
|
|
export function Header({ title }: HeaderProps) {
|
|
return (
|
|
<header className="sticky top-0 z-40 border-b bg-background">
|
|
<div className="flex h-16 items-center gap-4 px-6">
|
|
<div className="flex-1">
|
|
<h1 className="text-2xl font-semibold">{title}</h1>
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
<div className="relative w-64">
|
|
<Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
|
<Input
|
|
type="search"
|
|
placeholder="Search..."
|
|
className="pl-8 w-full"
|
|
/>
|
|
</div>
|
|
<ThemeToggle />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|