clean up imports

This commit is contained in:
Thomas Ruoff
2020-11-28 23:15:29 +01:00
parent 9c77305e72
commit 87f800ec53
7 changed files with 8 additions and 11 deletions

View File

@@ -1,12 +1,10 @@
import React, { useEffect, useState, Fragment } from "react";
export const ENDED = 0;
export const PLAYING = 1;
export const PAUSED = 2;
const Controls = ({ playerState, onPause, onPlay, onRestart }) => {
return (
<Fragment>
<>
<div className="player-controls">
{playerState === PLAYING && (
<a onClick={onPause} title="Pause">
@@ -37,7 +35,7 @@ const Controls = ({ playerState, onPause, onPlay, onRestart }) => {
</a>
)}
</div>
</Fragment>
</>
);
};