alinea
Version:
Headless git-based CMS
25 lines (24 loc) • 886 B
TypeScript
import type { QueryWithResult } from 'alinea/core/Graph';
import type { Reference } from 'alinea/core/Reference';
export interface ExporerItemSelect {
id: string;
type: string;
workspace: string;
root: string;
title: string;
childrenAmount?: number;
}
export interface ExplorerProps {
query: QueryWithResult<ExporerItemSelect>;
type: 'row' | 'thumb';
virtualized?: boolean;
max?: number;
selectable?: Array<string> | boolean;
selection?: Array<Reference>;
toggleSelect?: (entry: ExporerItemSelect) => void;
onNavigate?: (id: string) => void;
showMedia?: boolean;
withNavigation?: boolean;
border?: boolean;
}
export declare function Explorer({ type, query, virtualized, max, selectable, selection, toggleSelect, onNavigate, withNavigation, showMedia, border }: ExplorerProps): import("react/jsx-runtime").JSX.Element;