import React, { useRef, useState, useEffect } from 'react'; import { Home, Star, Bell, AngleDown, BarChart, CheckCircle, ListUnordered } from 'shared/icons'; import { Link } from 'react-router-dom'; import { RoleCode } from 'shared/generated/graphql'; import * as S from './Styles'; export type MenuItem = { name: string; link: string; }; type NavBarProps = { menuType?: Array | null; name: string | null; match: string; }; const NavBar: React.FC = ({ menuType, name, match }) => { return ( {name && {name}} {name && ( {menuType && menuType.map((menu, idx) => { return ( { // TODO }} > {menu.name} ); })} )} Taskcafé Sign In ); }; export default NavBar;