{this.renderFunctions(symbolsToDisplay)}
{this.renderFooter()}
);
}
}
const mapStateToProps = state => {
const selectedSource = getSelectedSourceWithContent(state);
const symbols = selectedSource
? getSymbols(state, selectedSource.source)
: null;
return {
cx: getContext(state),
symbols,
selectedSource: selectedSource && selectedSource.source,
selectedLocation: getSelectedLocation(state),
getFunctionText: line => {
if (selectedSource) {
return findFunctionText(line, selectedSource, symbols);
}
return null;
}
};
};
export default connect(
mapStateToProps,
{
selectLocation: actions.selectLocation,
flashLineRange: actions.flashLineRange
}
)(Outline);