alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
15 lines (14 loc) • 544 B
TypeScript
/// <reference types="react" />
import { Reference } from 'alinea/core';
import { ExporerItemSelect } from '../view/explorer/Explorer.js';
type ExplorerContext = {
selectable?: Array<string> | boolean;
selection: Array<Reference>;
onSelect: (entry: ExporerItemSelect) => void;
onNavigate?: (entryId: string) => void;
showMedia?: boolean;
border?: boolean;
};
export declare function useExplorer(): ExplorerContext;
export declare const ExplorerProvider: import("react").Provider<ExplorerContext | undefined>;
export {};