import { Duration } from 'luxon';
import { connectPlayer } from 'Player';
import styles from './time.css';
const Time = ({ time }) => (
{ Duration.fromMillis(time).toFormat('m:ss') }
)
Time.displayName = "Time";
const ReduxTime = connectPlayer((state, { name }) => ({
time: state[ name ],
}))(Time);
ReduxTime.displayName = "ReduxTime";
export default Time;
export { ReduxTime };