import React from 'react'; import type { TFunction } from 'i18next'; import styles from './required-label.scss'; interface RequiredLabelProps { isRequired: boolean; text: string; t: TFunction; } const RequiredLabel: React.FC = ({ isRequired, text, t }) => { return ( <> {text} {isRequired && ( * )} ); }; export default RequiredLabel;