feishin/src/renderer/features/player/context/play-queue-handler-context.ts

9 lines
274 B
TypeScript
Raw Normal View History

2022-12-31 19:26:58 -08:00
import { createContext } from 'react';
import { PlayQueueAddOptions } from '/@/renderer/types';
export const PlayQueueHandlerContext = createContext<{
2023-07-01 19:10:05 -07:00
handlePlayQueueAdd: ((options: PlayQueueAddOptions) => void) | undefined;
2022-12-31 19:26:58 -08:00
}>({
2023-07-01 19:10:05 -07:00
handlePlayQueueAdd: undefined,
2022-12-31 19:26:58 -08:00
});