import React, { createContext } from "react"; import { ProviderProps } from './types'; export const GlobalContext = createContext>(undefined); export const GlobalProvider = function (props: Pick) { return {props.children} } export const useGlobalContext = () => { const context = React.useContext(GlobalContext); return context || {}; }