import React, { createContext, useState } from 'react'; import { PluginProvidedState } from '/imports/ui/components/plugins-engine/types'; import { PluginsContextType, UserListGraphqlVariables } from './types'; export const PluginsContext = createContext({} as PluginsContextType); // eslint-disable-next-line @typescript-eslint/no-explicit-any export const PluginsContextProvider = ({ children, ...props }: any) => { const [pluginsProvidedAggregatedState, setPluginsProvidedAggregatedState] = useState( {} as PluginProvidedState, ); const [userListGraphqlVariables, setUserListGraphqlVariables] = useState( {} as UserListGraphqlVariables, ); return ( {children} ); };