import { Row, Col } from "antd"; import { withTranslation } from "react-i18next"; import { SvgIcon } from "../../../common/SvgIcon"; import { Button } from "../../../common/Button"; import { ContentBlockProps } from "../types"; import { Fade } from "react-awesome-reveal"; import { RightBlockContainer, Content, ContentWrapper, ButtonWrapper, } from "./styles"; const RightBlock = ({ title, content, button, icon, t, id, }: ContentBlockProps) => { const scrollTo = (id: string) => { const element = document.getElementById(id) as HTMLDivElement; element.scrollIntoView({ behavior: "smooth", }); }; return (
{t(title)}
{t(content)} {typeof button === "object" && button.map((item: any, id: number) => { return ( ); })}
); }; export default withTranslation()(RightBlock);