112 |
113 | {INLINE_STYLE_BUTTONS.map(type =>
114 |
121 | )}
122 |
123 |
141 |
142 | );
143 | };
144 |
145 |
146 | const BlockStyleControls = (props) => {
147 | const {editorState} = props;
148 | const selection = editorState.getSelection();
149 | const blockType = editorState
150 | .getCurrentContent()
151 | .getBlockForKey(selection.getStartKey())
152 | .getType();
153 |
154 | return (
155 |