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.
17 lines (16 loc) • 640 B
TypeScript
import { type UID } from '@strapi/strapi';
import { type PreviewButtonStateConfig } from '../../../server/src/config';
export interface UsePreviewButtonReturn {
isLoading: boolean;
isSupported: boolean;
draft: PreviewButtonStateConfig | null;
published: PreviewButtonStateConfig | null;
}
export interface PreviewButtonBeforeBuildUrlProps {
data: any;
draft: PreviewButtonStateConfig | undefined;
published: PreviewButtonStateConfig | undefined;
uid: UID.ContentType;
}
declare const usePreviewButton: (uid: UID.ContentType | undefined, data: any) => UsePreviewButtonReturn;
export default usePreviewButton;