mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 14:49:23 +00:00

Better tool flow for reusability Pinning Styling of tool flow consumption of files after tooling --------- Co-authored-by: Connor Yoh <connor@stirlingpdf.com> Co-authored-by: James Brunton <jbrunton96@gmail.com>
24 lines
618 B
TypeScript
24 lines
618 B
TypeScript
import React, { useEffect } from "react";
|
|
import { BaseToolProps } from "../types/tool";
|
|
|
|
const SwaggerUI: React.FC<BaseToolProps> = () => {
|
|
useEffect(() => {
|
|
// Redirect to Swagger UI
|
|
window.open("/swagger-ui/5.21.0/index.html", "_blank");
|
|
}, []);
|
|
|
|
return (
|
|
<div style={{ textAlign: "center", padding: "2rem" }}>
|
|
<p>Opening Swagger UI in a new tab...</p>
|
|
<p>
|
|
If it didn't open automatically,{" "}
|
|
<a href="/swagger-ui/5.21.0/index.html" target="_blank" rel="noopener noreferrer">
|
|
click here
|
|
</a>
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SwaggerUI;
|