UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

15 lines (14 loc) 544 B
/// <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 {};