import {useTranslation} from 'next-i18next'; interface AlertProps { onClose: () => void; errorMessage: string; } function Alert(props: AlertProps): JSX.Element { const { t } = useTranslation(['index', 'errors']); return (
{props.errorMessage} {t('index:errorClose')}
) } export default Alert;