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:
parent
39967c7e9e
commit
cb314e9f8d
10 changed files with 5 additions and 5 deletions
22
src/containers/player/PlayerView/index.tsx
Normal file
22
src/containers/player/PlayerView/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue