import { cn } from "@/src/utils/tailwind"; import Link from "next/link"; export type TableLinkProps = { path: string; value: string; icon?: React.ReactNode; className?: string; onClick?: (event: React.MouseEvent) => void; title?: string; }; export default function TableLink({ path, value, icon, className, onClick, title, }: TableLinkProps) { const handleClick = (event: React.MouseEvent) => { if (onClick) { event.preventDefault(); onClick(event); } }; return ( {icon ? {icon} : value} ); }