strapi-plugin-preview-button
Version:
A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
23 lines (22 loc) • 802 B
TypeScript
import { type ListFieldLayout, type ListLayout } from '@strapi/content-manager/strapi-admin';
import { type Modules, type UID } from '@strapi/strapi';
export interface AddPreviewColumnProps {
displayedHeaders: ListFieldLayout[];
layout: ListLayout;
}
declare const addPreviewColumn: ({ displayedHeaders, layout }: AddPreviewColumnProps) => {
displayedHeaders: (ListFieldLayout | {
label: {
id: string;
defaultMessage: string;
};
name: string;
searchable: boolean;
sortable: boolean;
cellFormatter: (data: Modules.Documents.AnyDocument, _: any, { model }: {
model: UID.ContentType;
}) => import("react/jsx-runtime").JSX.Element;
})[];
layout: ListLayout;
};
export default addPreviewColumn;