import React from 'react'; // import { Arrow } from './Arrow'; import './NumberSelector.css' import { PercentageOverlay } from './PercentageOverlay'; // setType: (txt: string) => void // choices: { label: string, value: string }[] // selected: string export function NumberSelector({ setType, choices, selected }) { const handleKeyPress = choice => event => { if (event.code === 'Space' || event.code === 'Enter'){ setType(choice); } } return (
{choices.map(v=>(
setType(v.value)}> {v.label}
))}
) }