From e8a303c99a62b9c8022b01cd6e99528140913fca Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:17:25 +0330 Subject: [PATCH] Import source: src/components/ui/ColorSwatch Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/ui/ColorSwatch.tsx | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/components/ui/ColorSwatch.tsx diff --git a/src/components/ui/ColorSwatch.tsx b/src/components/ui/ColorSwatch.tsx new file mode 100644 index 0000000..72b25cd --- /dev/null +++ b/src/components/ui/ColorSwatch.tsx @@ -0,0 +1,33 @@ +interface Props { + color: string | null; selected: boolean; + onClick: () => void; isRainbow?: boolean; +} + +export function ColorSwatch({ color, selected, onClick, isRainbow }: Props) { + const isTransparent = color === null && !isRainbow; + return ( + + ); +}