import * as React from 'react'; import { Select } from '@mantine/core'; import { EHexbinOptions } from './interfaces'; import { i18n } from '../../i18n'; interface HexbinOptionSelectProps { callback: (c: EHexbinOptions) => void; currentSelected: EHexbinOptions; } export function HexbinOptionSelect({ callback, currentSelected }: HexbinOptionSelectProps) { const options = [ { value: EHexbinOptions.COLOR, label: EHexbinOptions.COLOR }, { value: EHexbinOptions.BINS, label: EHexbinOptions.BINS }, { value: EHexbinOptions.PIE, label: EHexbinOptions.PIE }, ]; return (