import React, { createContext, useState } from 'react'; import { ExtensibleArea } from '/imports/ui/components/plugins-engine/extensible-areas/types'; import { PluginsContextType } from './types'; export const PluginsContext = createContext({} as PluginsContextType); // eslint-disable-next-line @typescript-eslint/no-explicit-any export const PluginsContextProvider = ({ children, ...props }: any) => { const [pluginsExtensibleAreasAggregatedState, setPluginsExtensibleAreasAggregatedState] = useState( {} as ExtensibleArea, ); const [domElementManipulationMessageIds, setDomElementManipulationMessageIds] = useState([]); const [domElementManipulationStreamIds, setDomElementManipulationStreamIds] = useState([]); return ( {children} ); };