MCPcopy Create free account
hub / github.com/TheOrcDev/orcish-fullstack-admin / Header

Function Header

components/ui/header.tsx:16–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14import { ModeToggle } from "./mode-toggle";
15
16export default function Header() {
17 return (
18 <header className="flex h-14 items-center gap-4 border-b bg-muted/40 px-4 lg:h-[60px] lg:px-6">
19 <MobileNav />
20 <div className="w-full flex-1">
21 <form>
22 <div className="relative">
23 <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
24 <Input
25 type="search"
26 placeholder="Search products..."
27 className="w-full appearance-none bg-background pl-8 shadow-none md:w-2/3 lg:w-1/3"
28 />
29 </div>
30 </form>
31 </div>
32 <ModeToggle />
33 <DropdownMenu>
34 <DropdownMenuTrigger asChild>
35 <Button variant="secondary" size="icon" className="rounded-full">
36 <CircleUser className="h-5 w-5" />
37 <span className="sr-only">Toggle user menu</span>
38 </Button>
39 </DropdownMenuTrigger>
40 <DropdownMenuContent align="end">
41 <DropdownMenuLabel>My Account</DropdownMenuLabel>
42 <DropdownMenuSeparator />
43 <DropdownMenuItem>Settings</DropdownMenuItem>
44 <DropdownMenuItem>Support</DropdownMenuItem>
45 <DropdownMenuSeparator />
46 <DropdownMenuItem>Logout</DropdownMenuItem>
47 </DropdownMenuContent>
48 </DropdownMenu>
49 </header>
50 );
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected