import React, { useRef } from 'react'; import { Bell } from 'shared/icons'; import { NotificationContainer, GlobalActions, ProjectActions, NavbarWrapper, NavbarHeader, Breadcrumbs, BreadcrumpSeparator, ProfileIcon, ProfileContainer, ProfileNameWrapper, ProfileNamePrimary, ProfileNameSecondary, } from './Styles'; type NavBarProps = { onProfileClick: (bottom: number, right: number) => void; onNotificationClick: () => void; }; const NavBar: React.FC = ({ onProfileClick, onNotificationClick }) => { const $profileRef: any = useRef(null); const handleProfileClick = () => { console.log('click'); const boundingRect = $profileRef.current.getBoundingClientRect(); onProfileClick(boundingRect.bottom, boundingRect.right); }; return ( Projects / project name / Board Jordan Knott Manager JK ); }; export default NavBar;