alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
25 lines (24 loc) • 847 B
TypeScript
import { Reference } from 'alinea/core';
import { Cursor } from 'alinea/core/pages/Cursor';
export interface ExporerItemSelect {
entryId: string;
type: string;
workspace: string;
root: string;
title: string;
i18nId?: string;
childrenAmount?: number;
}
export interface ExplorerProps {
cursor: Cursor.Find<ExporerItemSelect>;
type: 'row' | 'thumb';
virtualized?: boolean;
max?: number;
selectable?: Array<string> | boolean;
selection?: Array<Reference>;
toggleSelect?: (entry: ExporerItemSelect) => void;
onNavigate?: (entryId: string) => void;
showMedia?: boolean;
border?: boolean;
}
export declare function Explorer({ type, cursor, virtualized, max, selectable, selection, toggleSelect, onNavigate, showMedia, border }: ExplorerProps): import("react/jsx-runtime").JSX.Element;