Raw
1 "use client"
2
3 import React from "react"
4 import { useSidebar } from "@/providers/Sidebar"
5 import { Button } from "@/components/Button"
6 import { XMarkMini } from "@medusajs/icons"
7
8 export const SidebarTopMobileClose = () => {
9 const { setMobileSidebarOpen } = useSidebar()
10
11 return (
12 <div className="m-docs_0.75 lg:hidden">
13 <Button
14 variant="transparent-clear"
15 onClick={() => setMobileSidebarOpen(false)}
16 className="!p-0 hover:!bg-transparent"
17 >
18 <XMarkMini className="text-medusa-fg-subtle" />
19 </Button>
20 </div>
21 )
22 }