import Typography from "@mui/material/Typography"; import { useTheme } from "@mui/material/styles"; interface FieldLabelProps { children: React.ReactNode; required?: boolean; htmlFor?: string; } export const FieldLabel = ({ children, required = false, htmlFor }: FieldLabelProps) => { const theme = useTheme(); if (children === " ") { children = "\u00A0"; } return ( {children} {required && ( * )} ); };