import React, { Fragment } from 'react'; import { BaseDataEntryProps } from './data-entry'; import { DataTitleCopyable } from './data-title'; interface NumericDataEntryProps extends BaseDataEntryProps { value?: number; placeholder?: string; step?: number; min?: number; max?: number; } const NumericDataEntry: React.FunctionComponent = (props) => { const slugWithModifier = props.slug + (props.slugModifier ?? ''); return ( props.onChange( props.slug, e.target.value === '' ? null : parseFloat(e.target.value) ) } /> ); }; export default NumericDataEntry;