uikit/dist/layout.d.ts
Mohamadzadeh be4a6ed120
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 50s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
update sidebar
2026-08-19 17:59:03 +03:30

42 lines
925 B
TypeScript

export type SidebarItem = {
title: string;
mobileTitle?: string;
icon: any;
path: string;
aliases?: string[];
perm?: string | string[];
[key: string]: any;
};
export type SidebarProps = {
items?: SidebarItem[];
currentPath?: string;
linkComponent?: any;
onNavigate?: (item: SidebarItem) => void;
children?: any;
primaryMobileCount?: number;
moreTitle?: string;
moreDrawerTitle?: string;
desktopProps?: Record<string, any>;
mobileProps?: Record<string, any>;
};
export type SidebarExitProps = {
title?: string;
icon?: any;
};
export const Sidebar: ((props: SidebarProps) => any) & {
Exit: (props: SidebarExitProps) => any;
};
export function isSidebarPathActive(
currentPath: string | undefined,
item: SidebarItem,
): boolean;
export function getActiveSidebarItem(
items: SidebarItem[],
currentPath: string | undefined,
): SidebarItem | undefined;
export const Header: any;