/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { ExternalLink } from '@wordpress/components'; // @ts-expect-error: Not typed yet. import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor'; /** * Internal dependencies */ import { ScreenHeader } from './screen-header'; import { useStyle } from './hooks'; import { unlock } from './lock-unlock'; // Access AdvancedPanel from block-editor private APIs const { AdvancedPanel: StylesAdvancedPanel } = unlock( blockEditorPrivateApis ); function ScreenCSS() { // Get user-only styles (should not decode/encode to preserve raw CSS) const [ style ] = useStyle( '', undefined, 'user', false ); // Get all styles (inherited + user) for context const [ inheritedStyle, setStyle ] = useStyle( '', undefined, 'merged', false ); return ( <> { __( 'You can add custom CSS to further customize the appearance and layout of your site.' ) }
{ __( 'Learn more about CSS' ) } } />
); } export default ScreenCSS;