import React from 'react'; import { Nav, NavExpandable, NavItem, NavItemSeparator, NavList } from '@patternfly/react-core'; export const NavMixed: React.FunctionComponent = () => { const [activeGroup, setActiveGroup] = React.useState(''); const [activeItem, setActiveItem] = React.useState('ungrouped_item-1'); const onSelect = ( _event: React.FormEvent, result: { itemId: number | string; groupId: number | string | null } ) => { setActiveGroup(result.groupId as string); setActiveItem(result.itemId as string); }; return (
); };