MCPcopy Create free account
hub / github.com/DeveloperHarris/gptstatus / SiteHeader

Function SiteHeader

components/site-header.tsx:9–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { ThemeToggle } from "@/components/theme-toggle"
8
9export function SiteHeader() {
10 return (
11 <header className="sticky top-0 z-40 w-full border-b bg-background">
12 <div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
13 <MainNav items={siteConfig.mainNav} />
14 <div className="flex flex-1 items-center justify-end space-x-4">
15 <nav className="flex items-center space-x-1">
16 <Link
17 href={siteConfig.links.github}
18 target="_blank"
19 rel="noreferrer"
20 >
21 <div
22 className={buttonVariants({
23 size: "sm",
24 variant: "ghost",
25 })}
26 >
27 <Icons.gitHub className="h-5 w-5" />
28 <span className="sr-only">GitHub</span>
29 </div>
30 </Link>
31 <Link
32 href={siteConfig.links.twitter}
33 target="_blank"
34 rel="noreferrer"
35 >
36 <div
37 className={buttonVariants({
38 size: "sm",
39 variant: "ghost",
40 })}
41 >
42 <Icons.twitter className="h-5 w-5 fill-current" />
43 <span className="sr-only">Twitter</span>
44 </div>
45 </Link>
46 <ThemeToggle />
47 </nav>
48 </div>
49 </div>
50 </header>
51 )
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected