"use client"; import { Check, Copy } from "@openstatus/icons"; import { useCopyToClipboard } from "@openstatus/ui/hooks/use-copy-to-clipboard"; import { cn } from "@/lib/utils"; export function CopyRow({ label, value, className, }: { label: string; value: string; className?: string; }) { const { copy, isCopied } = useCopyToClipboard(); return (
{ e.stopPropagation(); copy(value, {}); }} >
{label}
{!isCopied ? ( ) : ( )} {value}
); }