UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

31 lines (30 loc) 1.24 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; previewProperties?: string[]; disabled?: boolean; entity: Entity<any>; includeId?: boolean; includeEntityLink?: 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, previewProperties, onClick, size, includeId, includeEntityLink, 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>>;