import { Menu, MenuButton, MenuList, MenuLink as ReachMenuLink, } from '@reach/menu-button'; import { UISrefProps, useSref } from '@uirouter/react'; import clsx from 'clsx'; import { User, ChevronDown } from 'react-feather'; import { AutomationTestingProps } from '@/types'; import { useUser } from '@/react/hooks/useUser'; import styles from './HeaderTitle.module.css'; export function UserMenu() { const { user } = useUser(); return (
{user && {user.Username}}
); } interface MenuLinkProps extends AutomationTestingProps, UISrefProps { label: string; } function MenuLink({ to, label, params, options, 'data-cy': dataCy, }: MenuLinkProps) { const anchorProps = useSref(to, params, options); return ( {label} ); }