// SPDX-License-Identifier: MIT // Copyright (c) 2020 The Pybricks Authors import { ProgressBar } from '@blueprintjs/core'; import React from 'react'; import { connect } from 'react-redux'; import { RootState } from '../reducers'; import './status-bar.scss'; type StateProps = { progress: number }; type StatusProps = StateProps; class StatusBar extends React.Component { render(): JSX.Element { return (
e.preventDefault()}>
); } } const mapStateToProps = (state: RootState): StateProps => ({ progress: state.status.progress, }); export default connect(mapStateToProps)(StatusBar);