/** * RefreshRouteOnSave Component * * Client component that listens for Payload CMS Live Preview postMessage events * and refreshes the Next.js route when content is saved. * * This component is used in preview routes to enable real-time updates * when editors make changes in the Payload admin panel. * * @see https://payloadcms.com/docs/live-preview/overview * * Copyright (c) 2025 QwickApps.com. All rights reserved. */ /** * Props for RefreshRouteOnSave */ export interface RefreshRouteOnSaveProps { /** * Optional callback fired when data is received from admin panel */ onDataReceived?: (data: any) => void; } /** * RefreshRouteOnSave * * Listens for postMessage events from Payload's Live Preview iframe communication * and refreshes the Next.js route to show updated content. */ export declare const RefreshRouteOnSave: React.FC; export default RefreshRouteOnSave; //# sourceMappingURL=RefreshRouteOnSave.d.ts.map