import { JSX, mergeProps } from 'solid-js' import { HslColor } from '../../types' import SliderSwatch from './SliderSwatch' interface Props { onClick: any hsl: HslColor } export default function SliderSwatches(_props: Props) { const props = mergeProps({}, _props) const styles: Record = { swatches: { 'margin-top': '20px', }, swatch: { 'box-sizing': 'border-box', width: '20%', 'padding-right': '1px', float: 'left', }, clear: { clear: 'both', }, } // Acceptible difference in floating point equality const epsilon = 0.1 return (
) }