import { Typography, Select } from "@mui/material"; import MenuItem from "@mui/material/MenuItem"; import { forwardRef } from "react"; import type { SelectProps } from "@mui/material/Select"; import { useTheme } from "@mui/material/styles"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; type ItemId = string | number; interface SelectItem { _id: ItemId; name: string; } export type CustomSelectProps = SelectProps & { items: SelectItem[]; placeholder?: string; isHidden?: boolean; hasError?: boolean; }; export const SelectInput = forwardRef( function SelectInput( { items, placeholder, isHidden = false, hasError = false, ...props }, ref ) { const theme = useTheme(); return ( ); } ); SelectInput.displayName = "SelectInput";