import React, { useContext } from "react";
import { ContextLang } from "../ContextLang";

type TProps = {
    text: {
        ru: string,
        en: string
    }
}


export const OrLineContainer:React.FC<TProps> = (props) => {
    const {lang} = useContext(ContextLang);
    return <div className="main-part-content-or-line-container">
        <span className="main-part-content-or-line"></span>
        <span className="main-part-content-or-line-text">{props.text[lang]}</span>
        <span className="main-part-content-or-line"></span>
    </div>
};