'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { RequestDetails } from './request-details';
// Export ContentRouter for URL-based routing
export { ContentRouter, findRequestById } from './content-router';
export function ApiDocsContent({ request }) {
    if (!request) {
        return /*#__PURE__*/ _jsx("div", {
            className: "flex-1 flex items-center justify-center bg-background",
            children: /*#__PURE__*/ _jsxs("div", {
                className: "text-center",
                children: [
                    /*#__PURE__*/ _jsx("p", {
                        className: "text-muted-foreground text-lg mb-2",
                        children: "Select an endpoint"
                    }),
                    /*#__PURE__*/ _jsx("p", {
                        className: "text-sm text-muted-foreground",
                        children: "Choose an endpoint from the sidebar to view its documentation"
                    })
                ]
            })
        });
    }
    return /*#__PURE__*/ _jsx("div", {
        className: "flex-1 overflow-y-auto bg-background",
        children: /*#__PURE__*/ _jsx(RequestDetails, {
            request: request
        })
    });
}
