{
render() {
const {
cx,
breakpoints,
selectedSource,
editor,
breakpointActions,
editorActions,
} = this.props;
if (!selectedSource || !breakpoints || selectedSource.isBlackBoxed) {
return null;
}
return (
{breakpoints.map(bp => {
return (
);
})}
);
}
}
export default connect(
state => ({
// Retrieves only the first breakpoint per line so that the
// breakpoint marker represents only the first breakpoint
breakpoints: getFirstVisibleBreakpoints(state),
selectedSource: getSelectedSource(state),
}),
dispatch => ({
breakpointActions: breakpointItemActions(dispatch),
editorActions: editorItemActions(dispatch),
})
)(Breakpoints);