// @ts-nocheck import { Button, Popover, Menu, Position } from '@blueprintjs/core'; import { Icon } from '@/components'; import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization'; import { useAuthenticatedAccount } from '@/hooks/query'; import { compose, firstLettersArgs } from '@/utils'; // Popover modifiers. const POPOVER_MODIFIERS = { offset: { offset: '28, 8' }, }; /** * Sideabr head. */ function SidebarHeadJSX({ // #withCurrentOrganization organization, }) { // Retrieve authenticated user information. const { data: user } = useAuthenticatedAccount(); return (
{organization.name}
} position={Position.BOTTOM} minimal={true} >
{user.full_name}
); } export const SidebarHead = compose( withCurrentOrganization(({ organization }) => ({ organization })), )(SidebarHeadJSX);