/** * WordPress dependencies */ import { Button } from '@safe-wordpress/components'; import { useDispatch, useSelect } from '@safe-wordpress/data'; import { _x } from '@safe-wordpress/i18n'; /** * External dependencies */ import { SaveButton } from '@nelio-content/components'; /** * Internal dependencies */ import { ExtraAction } from './extra-action'; import { store as NC_POST_EDITOR } from '../../store'; import { useIsSaving, useIsNew, useIsDisabled } from '../../hooks'; export const EditActions = (): JSX.Element => { const { close, saveAndClose } = useDispatch( NC_POST_EDITOR ); const disabled = useIsDisabled(); const error = useError(); const isNew = useIsNew(); const isSaving = useIsSaving(); return (