saleor-dashboard/src/hooks/useBackgroundTask.ts

9 lines
234 B
TypeScript
Raw Normal View History

import BackgroundTasksContext from "@dashboard/containers/BackgroundTasks/context";
2020-06-23 12:31:27 +00:00
import { useContext } from "react";
2020-06-23 13:24:45 +00:00
function useBackgroundTask() {
return useContext(BackgroundTasksContext);
}
2020-06-23 12:31:27 +00:00
export default useBackgroundTask;