import * as React from 'react';
import Breadcrumbs from "../Breadcrumbs/Breadcrumbs";
import Profile from "../Profile/Profile";

import '../../styles/styles.scss';

function Layout({children, breafcrumbs = false}) {
    return (
        <main className="layout">
            {breafcrumbs ?
                <header className="header">
                    <Breadcrumbs location={breafcrumbs.pathname}/>
                    <Profile/>
                </header>
                : null}
            {children}
        </main>
    );
}

export default Layout;
