aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/components/ComponentsRoute.tsx
blob: 53db94ab73aae0a1289e0b9f6702894dd18bf415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { lazy, Suspense } from 'react'
import { PageLoading } from './PageLoading'

const ComponentsPage = lazy(() =>
  import('../pages/ComponentsPage').then((module) => ({
    default: module.ComponentsPage,
  })),
)

export function ComponentsRoute() {
  return (
    <Suspense fallback={<PageLoading />}>
      <ComponentsPage />
    </Suspense>
  )
}