@action
    togglePreview(event) {
        event?.preventDefault();

        if (!this.previewModal || this.previewModal.isClosing) {
            if (this.publishFlowModal && !this.publishFlowModal.isClosing) {
                this.togglePreviewPublish();
            } else {
                this.openPreview();
            }
        } else {
            this.previewModal.close();
        }
    }
// triggered by ctrl/cmd+p
triggered by ctrl/cmd+p
triggered by ctrl / cmd + p
@action
    togglePreview(event) {
        event?.preventDefault();
        if (!this.previewModal || this.previewModal.isClosing) {
            if (this.publishFlowModal && !this.publishFlowModal.isClosing) {
                this.togglePreviewPublish();
            } else {
                this.openPreview();
            }
        } else {
            this.previewModal.close();
        }
    }
@ action togglePreview ( event ) { event ?. preventDefault ( ) ; if ( ! this . previewModal || this . previewModal . isClosing ) { if ( this . publishFlowModal && ! this . publishFlowModal . isClosing ) { this . togglePreviewPublish ( ) ; } else { this . openPreview ( ) ; } } else { this . previewModal . close ( ) ; } }
triggered by ctrl/cmd+p
triggered by ctrl / cmd + p