import React from 'react'; import { Nav, NavExpandable, NavItem, NavList } from '@patternfly/react-core'; export const NavExpandableThirdLevel: React.FunctionComponent = () => { const [activeGroup, setActiveGroup] = React.useState('nav-expand3rd-group-1'); const [activeItem, setActiveItem] = React.useState('nav-expand3rd-group-1_item-1'); const onSelect = ( _event: React.FormEvent, result: { itemId: number | string; groupId: number | string } ) => { setActiveGroup(result.groupId as string); setActiveItem(result.itemId as string); }; const onToggle = ( _event: React.MouseEvent, result: { groupId: number | string; isExpanded: boolean } ) => { // eslint-disable-next-line no-console console.log(`Group ${result.groupId} expanded? ${result.isExpanded}`); }; return (
); };