jacquardSnapshot

← snapshot

338 bytes
import { RATIONALE_FAMILIES } from "@/lib/types";

/** One rationale family, with its one-line meaning on hover. */
export function FamilyTag({ family }: { family: string }) {
  const hint = RATIONALE_FAMILIES.find((f) => f.label === family)?.hint;
  return (
    <span className="jac-tag" title={hint}>
      {family}
    </span>
  );
}