import { useState } from "preact/hooks"; export const MobileSidebar = ({ children }) => { const [sidebarOpen, setSidebarOpen] = useState(false); return ( <>
{ setSidebarOpen(!sidebarOpen); }} > {children}
); };