ing, itemId: number | string, to: string, preventDefault: boolean, onClick: ( e: React.FormEvent, itemId: number | string, groupId: number | string, to: string ) => void ) => this.onSelect(event, groupId, itemId, to, preventDefault, onClick), onToggle: (event: React.MouseEvent, groupId: number | string, expanded: boolean) => this.onToggle(event, groupId, expanded), updateIsScrollable: (isScrollable: boolean) => this.setState({ isScrollable }), isHorizontal: ['horizontal', 'horizontal-subnav'].includes(variant), flyoutRef: this.state.flyoutRef, setFlyoutRef: (flyoutRef) => this.setState({ flyoutRef }), navRef: this.navRef }} >
); } } export { Nav };