mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
21 lines
452 B
TypeScript
21 lines
452 B
TypeScript
"use client";
|
|
|
|
import { MenuIcon } from "lucide-react";
|
|
import { useSidebarContext } from "@/hooks/geistdocs/use-sidebar";
|
|
import { Button } from "../ui/button";
|
|
|
|
export const MobileMenu = () => {
|
|
const { isOpen, setIsOpen } = useSidebarContext();
|
|
|
|
return (
|
|
<Button
|
|
className="md:hidden"
|
|
onClick={() => setIsOpen(!isOpen)}
|
|
size="icon-sm"
|
|
variant="ghost"
|
|
>
|
|
<MenuIcon className="size-4" />
|
|
</Button>
|
|
);
|
|
};
|