import { LocalizedText } from "@workspace/i18n" import { MoonIcon, SunIcon } from "@workspace/ui/components/icon" import { cn } from "@workspace/ui/lib/utils" import { appearanceMessages } from "../messages" import type { ThemeColorConfig, ThemeScheme } from "../theme" import { accentColorSwatches, baseColorSwatches, ThemeColorPicker, } from "./theme-color-picker" export interface ThemeConfigCardProps { className?: string config: ThemeColorConfig onConfigChange: (config: ThemeColorConfig) => void scheme: ThemeScheme } export function ThemeConfigCard({ className, config, onConfigChange, scheme, }: ThemeConfigCardProps) { return (
{scheme === "light" ? ( ) : ( )}

} value={config.baseColor} onValueChange={(baseColor) => onConfigChange({ ...config, baseColor }) } /> } value={config.accentColor} onValueChange={(accentColor) => onConfigChange({ ...config, accentColor }) } />
) }