"use client"; import { Check } from "lucide-react"; import { cn } from "@/lib/utils"; import { ICON_KEYS, SWATCHES, type IconKey, type Swatch } from "@/shared/appearance"; import { AppIcon } from "./app-icon"; import { swatchStyle } from "./swatch"; import { tr } from "@/i18n/tr"; /** Renk seçici (radio grubu, klavye ile gezilebilir). */ export function SwatchPicker({ value, onChange, labelledBy, }: { value: Swatch; onChange: (v: Swatch) => void; labelledBy: string; }) { return (
{SWATCHES.map((s) => ( ))}
); } /** İkon seçici; seçili renkle önizler. */ export function IconPicker({ value, color, onChange, labelledBy, }: { value: IconKey; color: Swatch; onChange: (v: IconKey) => void; labelledBy: string; }) { return (
{ICON_KEYS.map((key) => ( ))}
); }