import * as React from "react" import clsx from "clsx" import { motion, MotionConfig, useReducedMotion } from "framer-motion" import { Container } from "./Container" import { Footer } from "./Footer" import { GridPattern } from "./GridPattern" import { Header } from "./Header" function NavigationRow({ children }: { children: React.ReactNode }) { return (
{children}
) } function NavigationItem({ href, children, }: { href: string children: React.ReactNode }) { return ( {children} ) } function Navigation() { return ( ) } export function RootLayout({ children }: { children: React.ReactNode }) { let panelId = React.useId() let [expanded, setExpanded] = React.useState(false) let openRef = React.useRef>(null) let closeRef = React.useRef>(null) let shouldReduceMotion = useReducedMotion() return ( <>
{ setExpanded((expanded) => !expanded) window.setTimeout( () => closeRef.current?.focus({ preventScroll: true }) ) }} />
{ setExpanded((expanded) => !expanded) window.setTimeout( () => openRef.current?.focus({ preventScroll: true }) ) }} />
{children}
) }