"use client"; import { Button } from "@/components/Button"; import { LoadingSpinner } from "@/components/icons/LoadingSpinner"; import { useState } from "react"; import { RedocStandalone } from "redoc"; import "./style.css"; const redocTheme = { hideDownloadButton: true, hideLoading: true, nativeScrollbars: true, theme: { sidebar: { backgroundColor: "transparent", textColor: "rgb(203, 213, 225)", activeTextColor: "#2dd4bf", }, rightPanel: { backgroundColor: "transparent", }, colors: { primary: { main: "#2dd4bf" }, text: { primary: "rgb(203, 213, 225)", secondary: "rgb(203, 213, 225)", }, responses: { success: { color: "#22c55e" }, error: { color: "#ef4444" }, info: { color: "#3b82f6" }, }, }, typography: { fontSize: "16px", lineHeight: "2rem", fontFamily: "Jost, system-ui, -apple-system, sans-serif", headings: { fontFamily: "Jost, system-ui, -apple-system, sans-serif", fontWeight: "600", }, code: { fontSize: "16px", fontFamily: "ui-monospace, monospace", }, }, codeBlock: { backgroundColor: "rgb(24, 35, 58)", }, spacing: { unit: 5 }, }, }; export const ApiDocs = () => { const [loading, setLoading] = useState(true); return (