This commit is contained in:
Jeremy Rangel
2025-11-30 00:50:56 -08:00
commit f1e7005b26
12 changed files with 844 additions and 0 deletions

15
QuickViewModal.js Normal file
View File

@ -0,0 +1,15 @@
import { Fragment } from '@wordpress/element';
export default function QuickViewModal({ post, onClose }) {
if (!post) return null;
return (
<div className="quickview-modal" onClick={onClose}>
<div className="quickview-content" onClick={e => e.stopPropagation()}>
<button className="quickview-close" onClick={onClose}>×</button>
<h3 dangerouslySetInnerHTML={{ __html: post.title?.rendered || '' }} />
<div dangerouslySetInnerHTML={{ __html: post.content?.rendered || '' }} />
</div>
</div>
);
}