import { Button, Image, theme } from "@prismicio/editor-ui"; import { telemetry } from "@/apiClient"; import { BlankSlate, BlankSlateActions, BlankSlateContent, BlankSlateDescription, BlankSlateImage, BlankSlateTitle, } from "@/components/BlankSlate"; interface NoChangesBlankSlateProps { isPostPush: boolean; documentsListEndpoint: string; } export function NoChangesBlankSlate(props: NoChangesBlankSlateProps) { const { isPostPush, documentsListEndpoint } = props; const content = getBlankSlateContent(isPostPush); return ( {content.title} {content.description} {isPostPush && ( )} ); } interface BlankSlateContent { img: string; title: string; description: string; } function getBlankSlateContent(isPostPush: boolean): BlankSlateContent { if (isPostPush) return postPushContent; return blankSlateContent; } const blankSlateContent = { img: "/blank-slate-changes-uptodate.png", title: "Everything is up-to-date", description: "No changes are staged. Saved updates will appear here, ready to be pushed to the Page Builder.", }; const postPushContent = { img: "/blank-slate-push-success.png", title: "Success! Your changes have been pushed to the Page Builder.", description: "Add content to your website to bring it to life!", };