import { Tooltip, Typography } from 'antd'; import { codeCellView } from './cellView'; import type { GridRow } from './statementGrid'; /** Ячейка кода (просмотр): код, у нераспознанного — серый сырой текст; подсказка — по `codeCellView`. */ export function CodeCell({ row, fontWeight }: { row: GridRow; fontWeight?: number }) { const view = codeCellView(row); const content = view.muted ? ( {view.text} ) : ( {view.text} ); if (!view.tip) return content; return ( {view.tip}}> {/* span с минимальной шириной: у расшифровки текст пуст, а подсказка должна открываться */} {content} ); }