芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/blocksy-companion/static/js/editor/blocks/query/Preview.js
import { useState, useEffect, createElement, useMemo, RawHTML, } from '@wordpress/element' import { withSelect, withDispatch } from '@wordpress/data' import { Spinner } from '@wordpress/components' import { __ } from 'ct-i18n' import { usePostsBlockData } from './hooks/use-posts-block-data' const Preview = ({ attributes, postId, uniqueId }) => { const { blockData } = usePostsBlockData({ attributes, previewedPostId: postId, }) if (!blockData || !blockData.block) { return
} return ( <>
{blockData.block}
{blockData && blockData.dynamic_styles && ( )} > ) } export default Preview