/** * WordPress dependencies */ import { Button } from '@safe-wordpress/components'; import { useSelect, useDispatch } from '@safe-wordpress/data'; import { _x } from '@safe-wordpress/i18n'; /** * Internal dependencies */ import './style.scss'; import { store as NC_EDIT_POST } from '../../../store'; export const Image = (): JSX.Element => { const alt = useSelect( ( select ) => select( NC_EDIT_POST ).getExternalFeaturedImageAlt(), [] ); const url = useSelect( ( select ) => select( NC_EDIT_POST ).getExternalFeaturedImageUrl(), [] ); const { editExternalFeaturedImage } = useDispatch( NC_EDIT_POST ); const { removeExternalFeaturedImage } = useDispatch( NC_EDIT_POST ); return (