1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

moved views to containers

This commit is contained in:
Fedor Katurov 2021-11-22 12:11:25 +07:00
parent 39967c7e9e
commit cb314e9f8d
10 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,22 @@
import React, { VFC } from 'react';
import { PlayerBar } from '~/components/bars/PlayerBar';
import { usePlayer } from '~/utils/hooks/player/usePlayer';
interface PlayerViewProps {}
const PlayerView: VFC<PlayerViewProps> = () => {
const { status, file, onPlayerSeek, onPlayerStop, onPlayerPause, onPlayerPlay } = usePlayer();
return (
<PlayerBar
status={status}
playerPlay={onPlayerPlay}
playerPause={onPlayerPause}
playerSeek={onPlayerSeek}
playerStop={onPlayerStop}
file={file}
/>
);
};
export { PlayerView };