import React from "react" ; import { ColorPicker } from "./common/ColorPicker" ; import { ColorModel , ColorPickerBaseProps } from "../types" ; import { equalHex } from "../utils/compare" ; import { hexToHsva , hsvaToHex } from "../utils/convert" ; const colorModel = { defaultColor : "000" , toHsva : hexToHsva , fromHsva : hsvaToHex , equal : equalHex , } ; export const HexColorPicker = ( props ) : JSX . Element => ( < ColorPicker { ... props } colorModel = { colorModel } / > ) ;