"use client"; import { memo, useMemo } from "react"; import Link, { LinkProps } from "next/link"; import { Tool } from "@/config/tools"; import { cn } from "@/lib/style"; import { Indicator } from "@/components/indicator"; type Props = Pick & Pick, "className" | "href" | "onClick"> & { highlight: "both" | "indicatorOnly" | "none"; }; function RawToolLink({ Icon, shortTitle: title, href, onClick, className, highlight }: Props) { const icon = useMemo(() => , [Icon]); return ( {icon} {title} ); } export const ToolLink = memo(RawToolLink);