packages/synapse-interface/contexts/BackgroundListenerProvider.tsx
import React, { createContext } from 'react'
import { useApplicationListener } from '@/utils/hooks/useApplicationListener'
import { usePortfolioListener } from '@/utils/hooks/usePortfolioListener'
import { useRiskEvent } from '@/utils/hooks/useRiskEvent'
import { useTransactionListener } from '@/utils/hooks/useTransactionListener'
import { use_TransactionsListener } from '@/utils/hooks/use_TransactionsListener'
import { useFetchPricesOnInterval } from '@/utils/hooks/useFetchPricesOnInterval'
import { useFetchGasDataOnInterval } from '@/utils/hooks/useFetchGasDataOnInterval'
import { useMaintenanceListener } from '@/utils/hooks/useMaintenanceListener'
const BackgroundListenerContext = createContext(null)
export const BackgroundListenerProvider = ({ children }) => {
useMaintenanceListener()
useApplicationListener()
usePortfolioListener()
useTransactionListener()
use_TransactionsListener()
useRiskEvent()
useFetchPricesOnInterval()
useFetchGasDataOnInterval()
return (
<BackgroundListenerContext.Provider value={null}>
{children}
</BackgroundListenerContext.Provider>
)
}