import cn from 'classnames' import { FC } from 'react' import s from './Swatch.module.css' import { Colors } from '@components/ui/types' import { Check } from '@components/icon' import Button, { ButtonProps } from '@components/ui/Button' interface Props { active?: boolean children?: any className?: string label?: string variant?: 'size' | 'color' | string color?: string } const Swatch: FC = ({ className, color, label, variant = 'size', active, ...props }) => { variant = variant?.toLowerCase() label = label?.toLowerCase() // console.log(variant) const rootClassName = cn( s.root, { [s.active]: active, [s.size]: variant === 'size', }, className ) return ( ) } export default Swatch