2023-04-15 09:10:59 +00:00
|
|
|
import { FormControl, TextField, useTheme } from "@mui/material";
|
2023-03-10 01:38:31 +00:00
|
|
|
|
|
|
|
interface CustomTextFieldProps {
|
2023-04-15 09:10:59 +00:00
|
|
|
placeholder: string;
|
|
|
|
text: string;
|
2023-03-10 01:38:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default function CustomTextField({ placeholder, text }: CustomTextFieldProps) {
|
2023-04-15 09:10:59 +00:00
|
|
|
const theme = useTheme();
|
2023-03-10 01:38:31 +00:00
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
return (
|
|
|
|
<FormControl fullWidth variant="standard" sx={{ p: 0 }}>
|
|
|
|
<TextField
|
|
|
|
// value={text}
|
|
|
|
fullWidth
|
|
|
|
placeholder={placeholder}
|
|
|
|
sx={{
|
|
|
|
"& .MuiInputBase-root": {
|
|
|
|
backgroundColor: theme.palette.background.default,
|
|
|
|
height: "48px",
|
|
|
|
borderRadius: "10px",
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
inputProps={{
|
|
|
|
sx: {
|
|
|
|
borderRadius: "10px",
|
|
|
|
fontSize: "18px",
|
|
|
|
lineHeight: "21px",
|
|
|
|
py: 0,
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</FormControl>
|
|
|
|
);
|
|
|
|
}
|