import { Link } from "@/components/common/link"; import { cn } from "@/lib/utils"; import { ArrowUpRight, ChevronRight } from "lucide-react"; export function TableCellLink({ value, className, ...props }: React.ComponentProps & { value: unknown; }) { if (typeof value === "string") { const isExternal = props.href?.toString().startsWith("http"); const externalProps = isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {}; const Icon = isExternal ? ArrowUpRight : ChevronRight; return ( {value} ); } return
-
; }