/** * WordPress dependencies */ import { useDispatch, useSelect } from '@safe-wordpress/data'; import { _x } from '@safe-wordpress/i18n'; /** * External dependencies */ import { ColorPickerDropdown, IconSelector } from '@nelio-content/components'; /** * Internal dependencies */ import { store as NC_CUSTOM_STATUSES } from '~/nelio-content-pages/settings/custom-statuses/store'; export const DisplaySettings = (): JSX.Element => { const attrs = useSelect( ( select ) => select( NC_CUSTOM_STATUSES ).getEditingStatus(), [] ); const { editStatus } = useDispatch( NC_CUSTOM_STATUSES ); return ( <>
editStatus( { colors: { ...attrs.colors, main: color }, } ) } /> editStatus( { colors: { ...attrs.colors, background: color }, } ) } />
editStatus( { icon: value } ) } /> ); };