/** * WordPress dependencies */ import { Dashicon } from '@safe-wordpress/components'; import { useSelect } from '@safe-wordpress/data'; import { _x } from '@safe-wordpress/i18n'; /** * Internal dependencies */ import { useCanEditPost } from '../hooks'; import { store as NC_POST_EDITOR } from '../store'; export const EditWarning = (): JSX.Element | null => { const canEditPost = useCanEditPost(); const message = useWarningMessage(); if ( canEditPost ) { return null; } return (