forked from Ninjalama/streamyfin_mirror
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import type React from "react";
|
|
import { createContext } from "react";
|
|
import { useJobProcessor } from "@/utils/atoms/queue";
|
|
|
|
const JobQueueContext = createContext(null);
|
|
|
|
export const JobQueueProvider: React.FC<{ children: React.ReactNode }> = ({
|
|
children,
|
|
}) => {
|
|
useJobProcessor();
|
|
|
|
return (
|
|
<JobQueueContext.Provider value={null}>{children}</JobQueueContext.Provider>
|
|
);
|
|
};
|