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