import React, { useContext } from "react"; import { ContextLang } from "../ContextLang"; type TProps = { text: { ru: string, en: string } } export const OrLineContainer:React.FC = (props) => { const {lang} = useContext(ContextLang); return
{props.text[lang]}
};