UNPKG

tinacms

Version:

> The Fastest Way to Edit Next.js Content

26 lines (25 loc) 790 B
/// <reference types="react" /> import { TinaState } from '../../tina-state'; declare type FormListItem = TinaState['formLists'][number]['items'][number]; export interface FormsListProps { formList: FormListItem[]; setActiveFormId(id: string): void; isEditing: Boolean; hidden?: boolean; } declare const FormListItem: ({ item, depth, setActiveFormId, }: { item: Extract<FormListItem, { type: 'document'; }>; depth: number; setActiveFormId: (id: string) => void; }) => JSX.Element; export declare const FormLists: (props: { isEditing: boolean; }) => JSX.Element; export declare const FormList: (props: { isEditing: boolean; setActiveFormId: (id: string) => void; formList: TinaState['formLists'][number]; }) => JSX.Element; export {};