"use client"; import { Logo } from "@/components/logo"; import { Navigation } from "@/components/navigation"; import { Search } from "@/components/search"; import { useIsInsideMobileNavigation, useMobileNavigationStore } from "@/hooks/use-mobile-navigation"; import clsx from "clsx"; import { type MotionStyle, motion, useScroll, useTransform } from "framer-motion"; import Link from "next/link"; import { forwardRef } from "react"; import { Button } from "./button"; import { MobileNavigation } from "./mobile-navigation"; import { ThemeToggle } from "./theme-toggle"; function TopLevelNavItem({ href, children }: { href: string; children: React.ReactNode }): React.JSX.Element { return (
  • {children}
  • ); } export const Header = forwardRef, { className?: string }>(({ className }, ref) => { const { isOpen: mobileNavIsOpen } = useMobileNavigationStore(); const isInsideMobileNavigation = useIsInsideMobileNavigation(); const { scrollY } = useScroll(); const bgOpacityLight = useTransform(scrollY, [0, 72], [0.5, 0.9]); const bgOpacityDark = useTransform(scrollY, [0, 72], [0.2, 0.8]); return (
    ); }); Header.displayName = "Header";