-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApplicationSidebarNavigation.tsx
More file actions
34 lines (29 loc) · 1.07 KB
/
ApplicationSidebarNavigation.tsx
File metadata and controls
34 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from "react";
import { SideNav as CarbonSideNav, SideNavProps as CarbonSideNavProps } from "@carbon/react";
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
export interface ApplicationSidebarNavigationProps
extends Omit<CarbonSideNavProps, "ref" | "defaultExpanded" | "isPersistent" | "isFixedNav" | "isChildOfHeader"| "onToggle"> {
children: React.ReactNode;
className?: string;
onToggle?: any //todo change later
}
export const ApplicationSidebarNavigation = ({
children,
className = "",
...otherCarbonSideNavProps
}: ApplicationSidebarNavigationProps) => {
return (
<CarbonSideNav
className={`${eccgui}-application__menu__sidebar ${className}`}
{...otherCarbonSideNavProps}
aria-label={"sidebar"}
defaultExpanded={false}
isPersistent={false}
isFixedNav={true}
isChildOfHeader={true}
>
{children}
</CarbonSideNav>
);
};
export default ApplicationSidebarNavigation;