import { useTemplatesStore } from '../state/Templates' import { Panel } from '@wordpress/components' import TaxonomySection from '../components/TaxonomySection' import { useTaxonomyStore } from '../state/Taxonomies' import SiteTypeSelector from '../components/SiteTypeSelector' import { useUserStore } from '../state/User' import { ImportCounter } from '../components/ImportCounter' import { brandMark } from '../components/icons/' import { Icon } from '@wordpress/icons' import { featured } from '../components/icons' import { __ } from '@wordpress/i18n' import classNames from 'classnames' export default function SidebarMain() { const taxonomies = useTaxonomyStore((state) => state.taxonomies) const searchParams = useTemplatesStore((state) => state.searchParams) const updatePreferredSiteType = useUserStore( (state) => state.updatePreferredSiteType, ) const updateTaxonomies = useTemplatesStore( (state) => state.updateTaxonomies, ) const apiKey = useUserStore((state) => state.apiKey) const taxonomyType = searchParams.type === 'pattern' ? 'patternType' : 'layoutType' const isFeatured = !searchParams?.taxonomies[taxonomyType]?.slug?.length return ( <>