import React from 'react'; import compareId from 'soapbox/compare_id'; import { HStack } from 'soapbox/components/ui'; import ColorWithPicker from 'soapbox/features/soapbox_config/components/color-with-picker'; interface ColorGroup { [tint: string]: string, } interface IPalette { palette: ColorGroup, } /** Editable color palette. */ const Palette: React.FC = ({ palette }) => { const tints = Object.keys(palette).sort(compareId); const result = tints.map(tint => { const hex = palette[tint]; return ( {}} /> ); }); return ( {result} ); }; export { Palette as default, ColorGroup, };