mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-23 10:07:30 +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: () => {} });
|