import React, { useContext, useEffect } from "react"; import { ContextLang } from "../ContextLang"; import { PinkButton } from "./pinkButton"; type TProps = { textButton: { ru: string, en: string } onClickButton: () => void titleText?: { ru: string, en: string } descriptText: { ru: string, en: string } accessCode?: string, } export const ContentContainer:React.FC = React.memo((props) => { let {lang} = useContext(ContextLang); return
{ props.titleText && {props.titleText[lang]} } {props.descriptText[lang]} { props.accessCode && {props.accessCode} }
})