mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-21 06:03:13 +02:00
7 lines
241 B
TypeScript
7 lines
241 B
TypeScript
import { createContext, Dispatch, SetStateAction } from "react";
|
|
|
|
export const GlobalLoadingContext = createContext<{
|
|
isLoading: boolean;
|
|
setIsLoading: Dispatch<SetStateAction<boolean>>;
|
|
}>({ isLoading: false, setIsLoading: () => {} });
|