import { InfoOutlined } from '@mui/icons-material'; import { Box, FormLabel, Tooltip, Typography } from '@mui/material'; import type { FormLabelProps } from '@mui/material'; import type { ReactNode } from 'react'; export default function CustomFormLabel({ children, required = false, tooltip = '', description = '', boxSx = {}, ...props }: FormLabelProps & { required?: boolean; tooltip?: ReactNode | string; description?: ReactNode | string; boxSx?: React.CSSProperties; }) { return ( {children} {required && ( * )} {tooltip && (typeof tooltip === 'string' ? ( ) : ( tooltip ))} {description && ( {description} )} ); }