import { Moon, Palette, Sun, Wallpaper } from "lucide-react"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { workspaceStore } from "@/store"; interface ThemeSelectProps { value?: string; onValueChange?: (theme: string) => void; className?: string; } const ThemeSelect = ({ value, onValueChange, className }: ThemeSelectProps = {}) => { const currentTheme = value || workspaceStore.state.theme || "default"; const themeOptions: { value: Theme; icon: JSX.Element; label: string }[] = [ { value: "default", icon: , label: "Default Light" }, { value: "default-dark", icon: , label: "Default Dark" }, { value: "paper", icon: , label: "Paper" }, { value: "whitewall", icon: , label: "Whitewall" }, ]; const handleThemeChange = (newTheme: Theme) => { if (onValueChange) { onValueChange(newTheme); } else { workspaceStore.setTheme(newTheme); } }; return ( ); }; export default ThemeSelect;