@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
20 lines (19 loc) • 759 B
TypeScript
import type { ContentNavigationItem } from '@nuxt/content';
import type { IconComponent } from '#b24ui/types';
type MapContentNavigationItemOptions = {
labelAttribute?: string;
deep?: number;
};
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, "title" | "path"> & {
label?: string;
to?: string;
type?: string;
icon?: IconComponent;
};
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "title" | "path"> & {
label?: string;
to?: string;
type?: string;
icon?: IconComponent;
})[];
export {};