import { EditorState } from 'draft-js' ; import getSelectedBlocksMapKeys from './getSelectedBlocksMapKeys' ; export default ( editorState , blockKey ) : boolean => { const selectedBlocksKeys = getSelectedBlocksMapKeys ( editorState ) ; return selectedBlocksKeys . includes ( blockKey ) ; } ;