"use client"; import type { ApiMethodHttpMethod } from "@/lib/api-method"; import { cn } from "@/lib/utils"; const methodColors = { GET: "text-green-600 dark:text-green-500", POST: "text-yellow-600 dark:text-yellow-600", PUT: "text-blue-600 dark:text-blue-400", PATCH: "text-cyan-600 dark:text-cyan-400", DELETE: "text-red-600 dark:text-red-400", } satisfies Record; function Method({ method }: { method: ApiMethodHttpMethod }) { return ( {method} ); } export function Endpoint({ path, method, className, }: { path: string; method: ApiMethodHttpMethod; className?: string; }) { return (
{path}
); }