import React from 'react';
import style from './navbarElement.module.sass';

const NavbarElement = (props) => {
    const {title, changePageHandler, changed} = props;

    return(
        <>
            <div
                className={style.navBarSimpleElement}
                onClick={changePageHandler}
                style={changed ? {borderBottom: "1px solid black"}:{}}
            >
                {title}
            </div>
        </>
    );
};

export default NavbarElement;