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 ( + + ); +}