'use client'; import { useEffect, useState, type ReactNode } from 'react'; import { Settings, Sun, Moon, RotateCcw, X, Check } from 'lucide-react'; import { useTheme } from 'next-themes'; import { DEFAULT_THEME, LAYOUT_OPTIONS, SIDEBAR_BACKGROUNDS, SIDEBAR_COLORS, SIDEBAR_SIZES, THEME_COLORS, TOPBAR_COLORS, ThemeLayout, ThemeSettings, applyTheme, clearAppliedTheme, loadTheme, saveTheme, } from '@/lib/themeCustomizer'; interface ThemeCustomizerProps { onChange?: (settings: ThemeSettings) => void; } function Section({ title, children }: { title: string; children: ReactNode }) { return (

{title}

{children}
); } function PreviewCard({ image, label, selected, onClick, }: { image: string; label: string; selected: boolean; onClick: () => void; }) { return ( ); } function Swatch({ color, selected, label, onClick, }: { color: string; selected: boolean; label: string; onClick: () => void; }) { return ( )} {open && ( <>
{LAYOUT_OPTIONS.map((item) => ( chooseLayout(item.id)} /> ))}
{SIDEBAR_COLORS.map((item) => ( update({ sidebarId: item.id })} /> ))}
{SIDEBAR_SIZES.map((item) => ( chooseLayout(item.id)} /> ))}
{TOPBAR_COLORS.map((item) => ( update({ topbarId: item.id })} /> ))}
{SIDEBAR_BACKGROUNDS.map((item) => ( ))}
{THEME_COLORS.map((item) => ( update({ colorId: item.id, color: item.value })} /> ))}
{(['fluid', 'boxed'] as const).map((id) => ( ))}
)} ); }