/********************************************************************************** * Copyright (c) 2025 EclipseSource and others. * * This program and the accompanying materials are made available under the * terms of the MIT License as outlined in the LICENSE file. **********************************************************************************/ import classNames from 'classnames'; import React from 'react'; import { createHighlightedText, createLabelWithTooltip } from '../../../../label/label-helpers'; import { CDTTreeItem, CDTTreeItemResource, CDTTreeTableStringColumn } from '../../../common'; export interface LabelCellProps { column: CDTTreeTableStringColumn; record: CDTTreeItem; } const LabelCell = ({ column }: LabelCellProps) => { const icon = column.icon && ; const content = column.tooltip ? createLabelWithTooltip({createHighlightedText(column.label, column.highlight)}, column.tooltip) : createHighlightedText(column.label, column.highlight); return (
{icon} {content}
); }; export default React.memo(LabelCell);