/* Copyright 2026 Marimo. All rights reserved. */ import type { JSX } from "react"; import { Tooltip } from "@/components/ui/tooltip"; import type { MangledSegment, UnmangledLocal } from "@/utils/local-variables"; import { CellLinkError } from "../links/cell-link"; interface Props { local: UnmangledLocal; } /** * Renders a compiler-mangled cell-local variable as the user's original name * (e.g. `_a`) with a tooltip linking to the defining cell. */ export const MangledLocalChip = ({ local }: Props): JSX.Element => { const tooltipContent = (