import type { Metric } from '../../../../common/types' ; import { TimeseriesVisParams } from '../../../types' ; export const createNumberHandler = ( handleChange ) => { return ( name , defaultValue ? ) => ( e ) => handleChange ?. ( { [ name ] : Number ( e . target . value ?? defaultValue ) } ) ; } ;