import { createElement } from '@wordpress/element' /** * WordPress dependencies */ import { __ } from '@wordpress/i18n' import { Button, ExternalLink } from '@wordpress/components' import { useDispatch } from '@wordpress/data' import { store as interfaceStore } from '../more-menu/interface/store' export default function WelcomeGuide({ sidebar }) { const { toggleFeature } = useDispatch(interfaceStore) const isEntirelyBlockWidgets = sidebar .getWidgets() .every((widget) => widget.id.startsWith('block-')) return (

{__('Welcome to block Widgets')}

{isEntirelyBlockWidgets ? __( 'Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.' ) : __( 'You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.' )}


{!isEntirelyBlockWidgets && (

{__('Want to stick with the old widgets?')}
{__('Get the Classic Widgets plugin.')}

)}

{__('New to the block editor?')}
{__("Here's a detailed guide.")}

) }