{"size": 722, "ext": "js", "max_stars_repo_path": "src/components/title_comp.js", "max_stars_repo_name": "Ri2rathod/Ri2-Portfolio-React", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/title_comp.js", "max_issues_repo_name": "Ri2rathod/Ri2-Portfolio-React", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/title_comp.js", "max_forks_repo_name": "Ri2rathod/Ri2-Portfolio-React", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.3913043478, "max_line_length": 131, "alphanum_fraction": 0.5692520776}
import React from 'react';
import svg from './../assets/images/svg/pattern.svg';

export default function title_comp({bool,heading}) {

    let text=String(heading);
    let style={
        "margin-bottom":"65px"
    }

    return (
        
        <div className={`d-flex justify-content-between align-items-center ${bool==="true"?"flex-row-reverse":''} `} style={style}>
            <h2 className="title word-nobreak display-5"> 
                <span className="heading_before_style position-relative">{text.slice(0,2)}</span>
                <span>{text.slice(2)}</span> 
            </h2>
            <hr className="flex-fill " />
            <img className="pattern" src={svg} alt="sample"/>
        </div>
    )
}
