"use client" import { useTheme } from "next-themes" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Label } from "@/components/ui/label" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import { cn } from "@/lib/utils" import { Sun, Moon, Monitor } from "lucide-react" export function ThemeSettings() { const { theme, setTheme } = useTheme() const options = [ { value: "light", icon: Sun, label: "Light" }, { value: "dark", icon: Moon, label: "Dark" }, { value: "system", icon: Monitor, label: "System" }, ] return ( Theme Settings Choose your preferred appearance for the dashboard. {options.map(({ value, icon: Icon, label }) => (
))}
) }