import { createFileRoute } from "@tanstack/react-router";
import { ApiReferenceReact } from "@scalar/api-reference-react";

import "@scalar/api-reference-react/style.css";

export const Route = createFileRoute("__NEXT_OPENAPI_GEN_ROUTE_PATH__")({
  component: ApiDocsPage,
});

function ApiDocsPage() {
  return (
    <ApiReferenceReact
      configuration={{
        _integration: "react",
        url: "/__NEXT_OPENAPI_GEN_OUTPUT_FILE__",
      }}
    />
  );
}
