Files
wp-react-components/QuickViewModal.js
Jeremy Rangel f1e7005b26 Initial
2025-11-30 00:50:56 -08:00

15 lines
596 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
);
}