/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { useContext } from '@wordpress/element'; /** * Internal dependencies */ import { AdminContext } from '../../../index'; import SettingItem from '../../components/setting-item'; export default function SuggestShowIcons() { const { editorOptions, setEditorOptions } = useContext( AdminContext ); const onChange = ( value: boolean ) => { setEditorOptions( { ...editorOptions, suggest: { ...editorOptions.suggest, showIcons: value, }, } ); }; return ( ); }