mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Move play queue handler to context
This commit is contained in:
parent
0f364f7c5c
commit
aa1cd742ad
15 changed files with 207 additions and 171 deletions
7
src/renderer/features/player/hooks/use-playqueue-add.ts
Normal file
7
src/renderer/features/player/hooks/use-playqueue-add.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { useContext } from 'react';
|
||||
import { PlayQueueHandlerContext } from '/@/renderer/features/player/context/play-queue-handler-context';
|
||||
|
||||
export const usePlayQueueAdd = () => {
|
||||
const { handlePlayQueueAdd } = useContext(PlayQueueHandlerContext);
|
||||
return handlePlayQueueAdd;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue