@blocklet/ui-react
Version:
Some useful front-end web components that can be used in Blocklets.
29 lines (28 loc) • 1.06 kB
TypeScript
export const publicPath: any;
export function formatTheme(theme: any): any;
export function getLink(link: any, locale?: string, defaultLocale?: string): any;
export function getLocalizedNavigation({ navigation, locale, defaultLocale, section }: {
navigation: Array<{
title?: string | Record<string, string>;
description?: string | Record<string, string>;
link?: string | Record<string, string>;
items?: any[];
[key: string]: any;
}>;
locale: string;
defaultLocale: string;
section?: "header" | "footer" | undefined;
}): any[];
export function formatNavigation(navigation: any): any;
export function parseNavigation(navigation: any): {
header: never[];
footer: never[];
social: never[];
bottom: never[];
dashboard: never[];
sessionManager: never[];
userCenter: never[];
} | null;
export function formatBlockletInfo(blockletInfo: any): any;
export function filterValidNavItems(navigation?: any[]): any;
export function filterNavByRole(nav: object[], userRole: string): any;