import * as React from 'react' ; import { NULL_FUNCTION } from "polar-shared/src/util/Functions" ; import { BlockContentEditable } from "../../../web/js/notes/contenteditable/BlockContentEditable" ; export const MinimalContentEditableStory = ( ) => { const handleKeyDown = React . useCallback ( ( event ) => { if ( event . key === 'Enter' ) { event . preventDefault ( ) ; event . stopPropagation ( ) ; } } , [ ] ) ; return ( < div > < BlockContentEditable id = "1234" parent = { undefined } content = "this is the content" onKeyDown = { handleKeyDown } onChange = { NULL_FUNCTION } / > < /div>); } ;