import React from 'react' import { Box, Title, SmallText, DropDownTrigger, DropDown, DropDownMenu, DropDownItem, Icon, Button, } from '../..' import { CurrentUserNavProps } from './current-user-nav-props' import StyledCurrentUserNav from './current-user-nav-styled' /** * @load ./current-user-nav.doc.md * @component * @subcategory Organisms * @hideconstructor * @see CurrentUserNavProps * @see {@link https://storybook.adminbro.com/?path=/story/designsystem-organisms-current-user-nav--default Storybook} * @new In version 3.3 * @section design-system */ const CurrentUserNav: React.FC = (props) => { const { name, title, avatarUrl, dropActions, lineActions } = props return ( {lineActions && lineActions.length && ( {lineActions.map((action) => ( ))} )} {name} {title && ( {title} )} {avatarUrl && ( {name} )} {dropActions && dropActions.length && ( )} {dropActions && dropActions.length && ( {dropActions.map((action) => ( {action.icon && ( )} {action.label} ))} )} ) } export { CurrentUserNav as default, CurrentUserNav, }