{this.renderCommands()}
{this.renderSourceSummary()}
{this.renderCursorPosition()}
{this.renderToggleButton()}
);
}
}
const mapStateToProps = state => {
const selectedSource = getSelectedSourceWithContent(state);
return {
cx: getContext(state),
selectedSource,
mappedSource: getGeneratedSource(state, selectedSource),
prettySource: getPrettySource(
state,
selectedSource ? selectedSource.id : null
),
endPanelCollapsed: getPaneCollapse(state, "end"),
canPrettyPrint: selectedSource
? canPrettyPrintSource(state, selectedSource.id)
: false,
};
};
export default connect