import React, { FC } from 'react'; import _ from 'lodash'; import DropDownChild from './DropDownChild'; import { NavModelItem } from '@grafana/data'; interface Props { link: NavModelItem; onHeaderClick?: () => void; } const SideMenuDropDown: FC = (props) => { const { link, onHeaderClick } = props; let childrenLinks: NavModelItem[] = []; if (link.children) { childrenLinks = _.filter(link.children, (item) => !item.hideFromMenu); } return ( ); }; export default SideMenuDropDown;