Add initial player component

This commit is contained in:
Matthew Stratford 2021-01-28 00:28:32 +00:00
parent f6831b5d48
commit cadb2f4591
2 changed files with 22 additions and 0 deletions

19
src/pflPlayer/index.tsx Normal file
View file

@ -0,0 +1,19 @@
import React, { useState } from "react";
export function PflPlayer() {
return (
<div id="pfl-player">
<div
className={"m-0 graph" + (playerState.loading !== -1 ? " loading" : "")}
id={"waveform-pfl"}
style={
playerState.loading !== -1
? {
width: playerState.loading * 100 + "%",
}
: {}
}
></div>
</div>
);
}

View file

@ -8,12 +8,15 @@ import { LibraryColumn } from "./libraries";
import * as OptionsMenuState from "../optionsMenu/state";
import * as MixerState from "../mixer/state";
import { PflPlayer } from "../pflPlayer";
export function Sidebar() {
return (
<div id="sidebar">
<LibraryColumn />
<div className="border-top"></div>
<PflPlayer />
<div className="border-top"></div>
<MicControl />
</div>
);