import { __ } from "@wordpress/i18n"; import { useQuery } from "@tanstack/react-query"; import { getFeaturedPluginsQueryOptions } from "@/shared/ploogins-search/query-options"; import { useEffect } from "@wordpress/element"; import usePluginsViewStore from "@/stores/pluginsViewStore"; import PluginsView from "../PluginsView"; const FeaturedPlugins = () => { const { data: featuredPlugins, isPending } = useQuery(getFeaturedPluginsQueryOptions()); const { setData, setIsPending } = usePluginsViewStore() useEffect(() => { setData(featuredPlugins ?? []) }, [featuredPlugins]) useEffect(() => { setIsPending(isPending) }, [isPending]) return (

{__('Featured Plugins', 'ploogins-ai-assistant')}

); } export default FeaturedPlugins