import { cn } from '@/utils/cn'; import Link from 'next/link'; interface KeyValueProps { name: string; value: any; onClick?: () => void; href?: string; } export function KeyValue({ href, onClick, name, value }: KeyValueProps) { const clickable = href || onClick; const Component = (href ? Link : onClick ? 'button' : 'div') as 'button'; return (
{name}
{value}
); }