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