mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
'use client';
|
|
|
|
import SwaggerUI from 'swagger-ui-react';
|
|
import 'swagger-ui-react/swagger-ui.css';
|
|
|
|
import { OpenAPIV1 } from '@documenso/api/v1/openapi';
|
|
|
|
// Custom Dark Mode CSS for the Swagger UI
|
|
// eslint-disable-next-line prettier/prettier
|
|
import './api-documentation.css';
|
|
|
|
export const OpenApiDocsPage = () => {
|
|
return <SwaggerUI spec={OpenAPIV1} displayOperationId={true} />;
|
|
};
|
|
|
|
export default OpenApiDocsPage;
|