interface LabelProps { text: string htmlFor?: string required?: boolean title?: string } function Label({text, htmlFor, required=false, title}: LabelProps) { return ( {text + (required ? '*' : '')} ); } export default Label;