import { HexColor } from '../../types' import { Swatch } from '../_common' import { JSX, For } from 'solid-js' interface Props { colors: string[] onClick: (hexCode: HexColor, e: Event) => void } export const BlockSwatches = ({ colors, onClick }: Props) => { const styles: Record = { swatches: { 'margin-right': '-10px', }, swatch: { width: '22px', height: '22px', float: 'left', 'margin-right': '10px', 'margin-bottom': '10px', 'border-radius': '4px', }, clear: { clear: 'both', }, } return (
{(c) => ( )}
) } export default BlockSwatches