This commit is contained in:
2025-07-03 14:57:57 +07:00
parent be4de9f24a
commit 1b05076317
22 changed files with 631 additions and 35 deletions

10
types/menuAkses/access.ts Normal file
View File

@@ -0,0 +1,10 @@
export interface PageAccess {
path?: string
permissions?: string[]
title?: string;
}
export interface RoleAccess {
role?: string
pages?: PageAccess[]
}

View File

@@ -0,0 +1,40 @@
// types/sidebar.ts
export interface SidebarItem {
header?: string;
title?: string;
icon?: any;
id?: number;
to?: string;
chip?: string;
BgColor?: string;
chipBgColor?: string;
chipColor?: string;
chipVariant?: string;
chipIcon?: string;
children?: menu[];
disabled?: boolean;
type?: string;
subCaption?: string;
role?: string[];
permission?: string[];
}
export interface menu {
header?: string;
title?: string;
icon?: any;
id?: number;
to?: string;
chip?: string;
BgColor?: string;
chipBgColor?: string;
chipColor?: string;
chipVariant?: string;
chipIcon?: string;
children?: menu[];
disabled?: boolean;
type?: string;
subCaption?: string;
role?: string[];
permission?: string[];
}