/** * WordPress dependencies */ import { __, _x } from '@wordpress/i18n'; import { useContext } from '@wordpress/element'; /** * Internal dependencies */ import type { EditorOptions } from '../../../types'; import { AdminContext } from '../../index'; import SettingItem from '../components/setting-item'; export default function CursorSmoothCaretAnimation() { const { editorOptions, setEditorOptions } = useContext( AdminContext ); const onChange = ( value: EditorOptions[ 'cursorSmoothCaretAnimation' ] ) => { setEditorOptions( { ...editorOptions, cursorSmoothCaretAnimation: value, } ); }; return ( ); }