import { SxProps, TextField, Theme, useTheme } from "@mui/material"; import { HTMLInputTypeAttribute, ChangeEvent } from "react"; import {InputBaseProps} from "@mui/material/InputBase"; export function CustomTextField({ id, label, value, name, onBlur,error, type, sx, onChange: setValue }: { id: string; label: string; value: number | string | null; name?: string; onBlur?: InputBaseProps['onBlur']; error?: boolean; type?: HTMLInputTypeAttribute; sx?: SxProps; onChange: (e: ChangeEvent) => void; }) { const theme = useTheme(); return ( ); }