'use client' import React from 'react' import { cn } from "@/lib/utils" import { Label } from "@/components/ui/label" import { useConfig } from '@/hooks/use-config' import { Icon } from "@/components/ui/icon" import { sidebarType } from '@/lib/type' import { classicSidebarSvg, draggableSidebarSvg, twoColumnSidebarSvg, compactSidebarSvg, } from "./data"; const allSidebars: { key: sidebarType, label: string, icon: string }[] = [ { key: "classic", label: "Classic", icon: "heroicons:chart-bar" }, { key: "draggable", label: "Draggable", icon: "heroicons:chart-pie" }, { key: "two-column", label: "Two Column", icon: "heroicons:chart-pie" }, { key: "compact", label: "Compact", icon: "heroicons:chart-pie" }, ]; const SetSidebar = () => { const [config, setConfig] = useConfig() return (
Sidebar
{allSidebars?.map(({ key, label, icon }, index) => (
))}
); } export default SetSidebar