import { ReactNode } from "react"; import { Button } from "@/app/_components/ui/button"; import { Copy } from "lucide-react"; import { cn } from "@/app/_lib/utils"; interface InfoRowProps { label: string; value: ReactNode; onCopy?: () => void; className?: string; labelClassName?: string; valueClassName?: string; copyButtonClassName?: string; } export function InfoRow({ label, value, onCopy, className, labelClassName, valueClassName, copyButtonClassName }: InfoRowProps) { return (
{label}
{typeof value === "string" ? ( {value} ) : value} {onCopy && ( )}
); }