import { withTranslation } from "react-i18next"; import { Container, TextWrapper, Content } from "./styles"; interface Props { title: string; content: string; t: any; } const Block = ({ title, content, t }: Props) => { return (
{t(title)}
{t(content)}
); }; export default withTranslation()(Block);