mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
feat(sidebar): sidebar with new functionalities (#7018)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { LucideIcon } from "lucide-react";
|
||||
import { SVGProps } from "react";
|
||||
|
||||
export type IconSvgProps = SVGProps<SVGSVGElement> & {
|
||||
@@ -9,6 +10,38 @@ export type IconProps = {
|
||||
style?: React.CSSProperties;
|
||||
};
|
||||
|
||||
export type IconComponent = LucideIcon | React.FC<IconSvgProps>;
|
||||
|
||||
export type SubmenuProps = {
|
||||
href: string;
|
||||
target?: string;
|
||||
label: string;
|
||||
active?: boolean;
|
||||
icon: IconComponent;
|
||||
};
|
||||
|
||||
export type MenuProps = {
|
||||
href: string;
|
||||
label: string;
|
||||
active?: boolean;
|
||||
icon: IconComponent;
|
||||
submenus?: SubmenuProps[];
|
||||
defaultOpen?: boolean;
|
||||
};
|
||||
|
||||
export type GroupProps = {
|
||||
groupLabel: string;
|
||||
menus: MenuProps[];
|
||||
};
|
||||
|
||||
export interface CollapseMenuButtonProps {
|
||||
icon: IconComponent;
|
||||
label: string;
|
||||
submenus: SubmenuProps[];
|
||||
defaultOpen: boolean;
|
||||
isOpen: boolean | undefined;
|
||||
}
|
||||
|
||||
export type NextUIVariants =
|
||||
| "solid"
|
||||
| "faded"
|
||||
|
||||
Reference in New Issue
Block a user