/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable no-relative-import-paths/no-relative-import-paths */
// @ts-nocheck - Overlay file copied into the starter repo where path aliases are configured.
import * as React from 'react';
import { NavLink } from 'react-router-dom';
import {
Brand,
Nav,
NavExpandable,
NavItem,
NavList,
PageSidebar,
PageSidebarBody,
} from '@patternfly/react-core';
import { isNavDataGroup, NavDataHref, NavDataGroup, NavDataItem } from './types';
// TODO: Replace this import with the proper one in the dashboard main package.
import { images as sharedImages } from '../../shared/images';
const NavHref: React.FC<{ item: NavDataHref }> = ({ item }) => (
{item.label}
);
const NavGroup: React.FC<{ item: NavDataGroup }> = ({ item }) => {
const { children } = item;
const [expanded, setExpanded] = React.useState(false);
return (
setExpanded(val)}
aria-label={item.label}
>
{children.map((childItem) => (
))}
);
};
export type NavSidebarProps = {
navData: NavDataItem[];
};
const NavSidebar: React.FC = ({ navData }) => (
);
export default NavSidebar;