

import TextField from "@mui/material/TextField";

interface NumericInputProps {
    label: string;
    value: string;
}

export const NumericInput = ({label:string, value}) : NumericInputProps => {

  return (
    <TextField
      type="number"
      label={label}
      value={value}
      //defaultValue="10"
//      error={!!(errors as any)?.samplerate}
//      helperText={(errors as any)?.samplerate?.message}
      margin="normal"
      fullWidth
      InputLabelProps={{ shrink: true }}
    />
  );
}


// function NumericInput() {
//     return (
//       <TextField
//         type="number"
//         label="Enter a number"
//         defaultValue="10"
//         // Other props
//       />
//     );
//   }
  


// {...register("samplerate", {
//     required: "The samplerate is required",
//   })}
//   error={!!(errors as any)?.samplerate}
//   helperText={(errors as any)?.samplerate?.message}
//   margin="normal"
//   fullWidth
//   InputLabelProps={{ shrink: true }}
//   type="number"
//   label={"Samplerate"}
//   name="samplerate"
