import type { ReactNode } from 'react'; export type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; export interface EndpointRowProps { method: Method; /** The path, set in mono: `/whatsapp/phone-numbers/purchase`. */ path: string; children?: ReactNode; /** Drawn as the selected row — the one the surrounding copy is about. */ selected?: boolean; className?: string; } export function EndpointRow({ method, path, children, selected = false, className }: EndpointRowProps) { return (
{method} {path} {children !== undefined && {children}}
); }