feishin/src/renderer/features/player/hooks/use-playqueue-add.ts

8 lines
288 B
TypeScript
Raw Normal View History

2022-12-31 19:26:58 -08:00
import { useContext } from 'react';
import { PlayQueueHandlerContext } from '/@/renderer/features/player/context/play-queue-handler-context';
export const usePlayQueueAdd = () => {
2023-07-01 19:10:05 -07:00
const { handlePlayQueueAdd } = useContext(PlayQueueHandlerContext);
return handlePlayQueueAdd;
2022-12-31 19:26:58 -08:00
};