import type { ComponentPropsWithRef, ReactNode } from "react"; import { useLayoutNav } from "../layout/layout"; import { cn } from "../../lib/utils"; /** Access the nav state from any child component. */ function useNav() { return useLayoutNav(); } type Props = ComponentPropsWithRef<"nav"> & { footer?: ReactNode; header?: ReactNode; }; /** * Application nav with grouped navigation and optional footer. * Must be used within a Layout component. */ function Nav({ footer, header, children, className, ref, ...props }: Props) { let { open } = useNav(); return ( ); } export { Nav };