@sanity/form-builder
Version:
Sanity form builder
22 lines • 665 B
TypeScript
import React from 'react';
import { ObjectSchemaType } from '@sanity/types';
import { DocumentAvailability } from '@sanity/base/_internal';
import { DocumentPreview } from './types';
/**
* Used to preview a referenced type
* Takes the reference type as props
* @param props
* @constructor
*/
export declare function ReferencePreview(props: {
availability: DocumentAvailability;
id: string;
preview: {
draft: DocumentPreview | undefined;
published: DocumentPreview | undefined;
};
refType: ObjectSchemaType;
layout: string;
showTypeLabel: boolean;
}): React.JSX.Element;
//# sourceMappingURL=ReferencePreview.d.ts.map