import React from "react"; import { type WithTranslation, withTranslation } from "react-i18next"; import "./SmallError.scss"; type SmallErrorInternalProps = { children?: React.ReactNode } & WithTranslation; class SmallErrorInternal extends React.Component { render () { const t = this.props.t; return (
{t("Error:")} {this.props.children}
); } } const SmallError = withTranslation()(SmallErrorInternal); export default SmallError;