'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 Image from 'next/image' import { layoutType } from '@/lib/type' import { verticalLayoutSvg, horizontalLayoutSvg, semiBoxLayoutSvg, compactLayoutSvg, } from "./data"; const allLayouts: { key: layoutType, label: string, icon: string }[] = [ { key: "vertical", label: "Vertical", icon: "heroicons:chart-bar", }, { key: "horizontal", label: "Horizontal", icon: "heroicons:chart-pie", }, { key: "semi-box", label: "SemiBox", icon: "heroicons:chart-pie" }, { key: "compact", label: "Compact", icon: "heroicons:chart-pie" }, ]; const SetLayout = () => { const [config, setConfig] = useConfig() return (
Layout
{allLayouts?.map(({ key, label, icon }, index) => (
))}
); } export default SetLayout