import { FormControl, TextField as MuiTextField, SxProps, Theme, useTheme } from "@mui/material"; import type { InputProps, TextFieldProps } from "@mui/material"; import type { ChangeEvent, FC, FocusEvent, KeyboardEvent } from "react"; const TextField = MuiTextField as unknown as FC; // temporary fix ts(2590) interface CustomTextFieldProps { placeholder: string; value?: string; error?: string; onChange?: (event: ChangeEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; onBlur?: (event: FocusEvent) => void; text?: string; sx?: SxProps; InputProps?: Partial; } export default function CustomTextField({ placeholder, value, text, sx, error, onChange, onKeyDown, onBlur, InputProps, }: CustomTextFieldProps) { const theme = useTheme(); return ( ); }