import {createContext, useContext, useState} from 'react'; import type {addIntegration} from '@sentry/react'; type Integration = Parameters[0]; type State = Record; const context = createContext<{ setState: React.Dispatch>; state: State; }>({ setState: () => {}, state: {}, }); export function AsyncSDKIntegrationContextProvider({ children, }: { children: React.ReactNode; }) { const [state, setState] = useState({}); return {children}; } export default function useAsyncSDKIntegrationStore() { return useContext(context); }