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