You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/frontend/src/contexts/Loading.ts

12 lines
248 B

import { createContext, useContext } from "react";
const LoadingContext = createContext<boolean>(false);
export function useIsLoading() {
const context = useContext(LoadingContext);
return context;
}
export default LoadingContext.Provider;