import { GitCompareArrows } from "lucide-react"; import type { CanvasItem, OpenTarget } from "@/lib/types"; interface Props { item: CanvasItem; onOpen: (item: CanvasItem, target: OpenTarget) => void; className?: string; } export function SourceComparisonButton({ item, onOpen, className = "nodeAction nodrag nopan" }: Props) { if (!("detailRef" in item) || !item.detailRef) return null; return ; }