File size: 316 Bytes
dfe72e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
'use client';
import 'swagger-ui-react/swagger-ui.css';
import dynamic from "next/dynamic";
type Props = {
spec: Record<string, any>,
};
const SwaggerUI = dynamic(() => import('swagger-ui-react'), { ssr: false });
function Swagger({ spec }: Props) {
return <SwaggerUI spec={spec}/>;
}
export default Swagger; |