mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
17 lines
505 B
JavaScript
17 lines
505 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
|
|
import CharacterString from "../CharacterString";
|
|
import { getRunningTimeMessage } from "../../selectors";
|
|
|
|
const RunningTimeDisplay = props => (
|
|
<div className="playlist-running-time-display draggable">
|
|
<CharacterString>{props.runningTimeMessage}</CharacterString>
|
|
</div>
|
|
);
|
|
|
|
const mapStateToProps = state => ({
|
|
runningTimeMessage: getRunningTimeMessage(state)
|
|
});
|
|
|
|
export default connect(mapStateToProps)(RunningTimeDisplay);
|