{
e.stopPropagation();
if (node.isLeaf) {
node.select();
} else {
node.toggle();
}
}}
>
{renderIcon()}
{highlightText(data.name, searchTerm)}
{identifier === 'schema' && (
{
e.stopPropagation();
fetchLazyTables({
dbId: _dbId,
catalog,
schema,
forceRefresh: true,
});
}}
tooltipContent={t('Force refresh table list')}
/>
)}
{identifier === 'table' && (
}
onClick={e => {
e.stopPropagation();
handlePinTable(tableName, schema, catalog ?? null);
}}
/>
)}
);
};
export default TreeNodeRenderer;