mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
15 lines
399 B
TypeScript
15 lines
399 B
TypeScript
'use client';
|
|
|
|
import type { OpenAPIV3 } from '@gitbook/openapi-parser';
|
|
|
|
/**
|
|
* Interactive component to show the value of a server variable and let the user change it.
|
|
*/
|
|
export function OpenAPIServerURLVariable(props: {
|
|
name: string;
|
|
variable: OpenAPIV3.ServerVariableObject;
|
|
}) {
|
|
const { variable } = props;
|
|
return <span className="openapi-url-var">{variable.default}</span>;
|
|
}
|