'use client'; import { useEffect, useState } from 'react'; import { Trans } from '@lingui/macro'; export const EmbedWaitingForTurn = () => { const [hasPostedMessage, setHasPostedMessage] = useState(false); useEffect(() => { if (window.parent && !hasPostedMessage) { window.parent.postMessage( { action: 'document-waiting-for-turn', data: null, }, '*', ); } setHasPostedMessage(true); }, [hasPostedMessage]); if (!hasPostedMessage) { return null; } return (

Waiting for Your Turn

It's currently not your turn to sign. Please check back soon as this document should be available for you to sign shortly.

Please check with the parent application for more information.

); };