'use client'; import type { ApiEndpoint } from '../../../../types'; import { ParamRow } from './ParamRow'; interface ParamGroupProps { /** Small uppercase label shown above the group (``Path``, ``Query``). */ label: string; params: NonNullable; } /** Labelled block of parameter rows. We split path vs query so the user * can tell which values go in the URL template vs the query string at * a glance — both are ``parameters`` in OpenAPI terms but they land in * different places in the generated request. */ export function ParamGroup({ label, params }: ParamGroupProps) { if (params.length === 0) return null; return (
{label}
{params.map((p) => ( ))}
); }