RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/Page/PageContext.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Dispatch, SetStateAction } from 'react';
import { createContext } from 'react';

type PageContextValue = [boolean, Dispatch<SetStateAction<boolean>>];

const PageContext = createContext<PageContextValue>([false, (): void => undefined]);

export default PageContext;