UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

33 lines (32 loc) 1.32 kB
import * as React from "react"; import { Entity, EntityCollection } from "../types"; import { PreviewSize } from "../preview"; export type EntityPreviewProps = { size?: PreviewSize; actions?: React.ReactNode; collection?: EntityCollection; hover?: boolean; previewKeys?: string[]; disabled?: boolean; entity: Entity<any>; includeId?: boolean; includeTitle?: boolean; includeEntityLink?: boolean; includeImage?: boolean; onClick?: (e: React.SyntheticEvent) => void; }; /** * This view is used to display a preview of an entity. * It is used by default in reference fields and whenever a reference is displayed. */ export declare function EntityPreview({ actions, disabled, hover, collection: collectionProp, previewKeys, onClick, size, includeId, includeTitle, includeEntityLink, includeImage, entity, }: EntityPreviewProps): import("react/jsx-runtime").JSX.Element; export type EntityPreviewContainerProps = { children: React.ReactNode; hover?: boolean; fullwidth?: boolean; size?: PreviewSize; className?: string; style?: React.CSSProperties; onClick?: (e: React.SyntheticEvent) => void; }; export declare const EntityPreviewContainer: React.ForwardRefExoticComponent<EntityPreviewContainerProps & React.RefAttributes<HTMLDivElement>>;