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

36 lines
831 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;
logoutTitle?: string;
logoutIcon?: any;
primaryMobileCount?: number;
moreTitle?: string;
moreDrawerTitle?: string;
desktopProps?: Record<string, any>;
mobileProps?: Record<string, any>;
};
export function Sidebar(props: SidebarProps): any;
export function isSidebarPathActive(
currentPath: string | undefined,
item: SidebarItem,
): boolean;
export function getActiveSidebarItem(
items: SidebarItem[],
currentPath: string | undefined,
): SidebarItem | undefined;
export const Header: any;