alinea
Version:
Headless git-based CMS
15 lines (14 loc) • 557 B
TypeScript
import type { Reference } from 'alinea/core/Reference';
import type { ExporerItemSelect } from '../view/explorer/Explorer.js';
type ExplorerContext = {
selectable?: Array<string> | boolean;
selection: Array<Reference>;
onSelect: (entry: ExporerItemSelect) => void;
onNavigate?: (id: string) => void;
showMedia?: boolean;
withNavigation?: boolean;
border?: boolean;
};
export declare function useExplorer(): ExplorerContext;
export declare const ExplorerProvider: import("react").Provider<ExplorerContext | undefined>;
export {};