"use client" import { useSidebar } from "@/providers/sidebar" import clsx from "clsx" import dynamic from "next/dynamic" import { SidebarItemProps } from "./Item" import Loading from "../Loading" const SidebarItem = dynamic(async () => import("./Item"), { loading: () => , }) as React.FC type SidebarProps = { className?: string } const Sidebar = ({ className = "" }: SidebarProps) => { const { items, mobileSidebarOpen, desktopSidebarOpen } = useSidebar() return ( ) } export default Sidebar