Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
747 Bytes
import { BumpSvgProps } from '@nivo/bump'
import { AxisProps } from '@nivo/axes'
import { settingsMapper, UnmappedSettings } from '../../../lib/settings'
import { mapAxis } from '../../../lib/property-mappers'
export type MappedBumpProps = Omit<BumpSvgProps<any>, 'data' | 'width' | 'height'>
export type UnmappedBumpProps = UnmappedSettings<
MappedBumpProps,
{
axisTop: AxisProps & { enable: boolean }
axisRight: AxisProps & { enable: boolean }
axisBottom: AxisProps & { enable: boolean }
axisLeft: AxisProps & { enable: boolean }
}
>
export default settingsMapper<UnmappedBumpProps, MappedBumpProps>({
axisTop: mapAxis,
axisRight: mapAxis,
axisBottom: mapAxis,
axisLeft: mapAxis,
})