import { InputLabel , InputLabelProps } from '@mui/material' ; import { isEmpty } from 'lodash' ; import * as React from 'react' ; const SelectLabel = ( props ) => { const { inputId , label , shrink , inputLabelProps } = props ; if ( isEmpty ( label ) ) { return null ; } return ( < InputLabel { ... inputLabelProps } htmlFor = { inputId } shrink = { shrink } variant = "standard" > { label } < /InputLabel>); } ; const getStyle = ( style , userStyle ? ) : React . CSSProperties => userStyle ? { ... style , ... userStyle } : style ; interface SelectLabelProps { hasInputFocus ? : boolean ; inputId ? : string ; inputLabelProps ? : Partial < InputLabelProps > ; label ? : React . ReactNode ; shrink ? : boolean ; } export default SelectLabel ;