import React from "react"; import { NavLink } from "react-router"; import { Button } from "@/components/ui/button"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { cn } from "@/lib/utils"; export function MobileNav({ items, className, }: Readonly<{ items: { href: string; label: string }[]; className?: string; }>) { const [open, setOpen] = React.useState(false); return (
Menu
Home {items.map((item) => ( {item.label} ))}
); } function MobileLink({ href, className, children, onOpenChange, ...props }: Readonly<{ href: string; onOpenChange?: (open: boolean) => void; children: React.ReactNode; className?: string; }>) { return ( { onOpenChange?.(false); }} className={cn("text-2xl font-medium", className)} {...props} > {children} ); }