@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
12 lines (11 loc) • 690 B
TypeScript
import type { Ref } from 'vue';
import type { UseLoadingProps } from '../composables/useLoading';
export interface DashboardContext extends /** @vue-ignore */ Pick<UseLoadingProps, 'storage' | 'storageKey'> {
contextId?: string;
sidebarOpen?: Ref<boolean>;
isLoading?: Ref<boolean>;
toggleSearch?: () => void;
toggleSidebar?: () => void;
load?: (loading: boolean, contextId?: string) => void;
}
export declare const useDashboard: <T extends DashboardContext | null | undefined = DashboardContext>(fallback?: T | undefined) => T extends null ? DashboardContext | null : DashboardContext, provideDashboardContext: (contextValue: DashboardContext) => DashboardContext;