import { OpenAPICopyButton } from './OpenAPICopyButton'; import { OpenAPIMethodBadge } from './OpenAPIMethodBadge'; import type { OpenAPIPathProps } from './OpenAPIPath'; import type { OpenAPIClientContext } from './context'; export function OpenAPIPathItem( props: OpenAPIPathProps & { value?: string; children: React.ReactNode; copyType?: 'button' | 'children'; context: OpenAPIClientContext; } ) { const { value, canCopy = true, context, children, data, copyType = 'children', methodBadgeSize = 'medium', } = props; const { operation, method } = data; const title = {children}; return (