import React from 'react'; import { css } from '@leafygreen-ui/emotion'; // @ts-expect-error import OpenNewTabIcon from '@leafygreen-ui/icon/dist/OpenNewTab'; import { MenuItem } from '@leafygreen-ui/menu'; import { palette } from '@leafygreen-ui/palette'; import { OnElementClickType } from '../../on-element-click-provider/OnElementClickProvider'; interface GetHelpMenuItemProps { newTab: boolean; testId: string; href?: string; onClick: ReturnType; children: string; } const menuItemContentStyle = css` display: flex; align-items: flex-start; gap: 2px; `; const tabIconStyle = css` height: 14px; width: 14px; color: ${palette.blue.light1}; `; export const GetHelpMenuItem = ({ newTab, children, testId, ...rest }: GetHelpMenuItemProps) => { return (
{children} {newTab && ( )}
); };