Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
colorInterpolatorIds,
colorInterpolators,
} from '@nivo/colors'
import { components } from 'react-select'
import ColorsControlItem from './ColorsControlItem'
import Control from './Control'
import PropertyHeader from './PropertyHeader'
import { Help } from './styled'
import Select from './Select'
const colors = colorSchemeIds.map(id => ({
id,
colors: colorSchemes[id],
}))
const sequentialColors = colorInterpolatorIds.map(id => ({
id: `seq:${id}`,
colors: range(0, 1, 0.05).map(t => colorInterpolators[id](t)),
}))
const SingleValue = props => {
return (
)
}
const Option = props => {
return (