history-root.tsx 450 B

12345678910111213
  1. import { memo } from 'react'
  2. import { HistoryProvider } from '@/features/history/context/history-context'
  3. import withErrorBoundary from '@/infrastructure/error-boundary'
  4. import { ErrorBoundaryFallback } from '@/shared/components/error-boundary-fallback'
  5. import History from './history'
  6. const HistoryRoot = () => (
  7. <HistoryProvider>
  8. <History />
  9. </HistoryProvider>
  10. )
  11. export default withErrorBoundary(memo(HistoryRoot), ErrorBoundaryFallback)