mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
13 lines
392 B
TypeScript
13 lines
392 B
TypeScript
|
|
import { Loader } from "components/Loader"
|
||
|
|
import React, { Suspense } from "react"
|
||
|
|
|
||
|
|
export function ApiDocumentationPage() {
|
||
|
|
// swagger-ui is very large, load only on-demand
|
||
|
|
const SwaggerUI = React.lazy(() => import("swagger-ui-react"))
|
||
|
|
return (
|
||
|
|
<Suspense fallback={<Loader />}>
|
||
|
|
<SwaggerUI url="swagger/swagger.json" />
|
||
|
|
</Suspense>
|
||
|
|
)
|
||
|
|
}
|