import QualifierIcon from '../../../components/shared/qualifier-icon';
+function getTooltip (component) {
+ const isFile = component.qualifier === 'FIL' || component.qualifier === 'UTS';
+ if (isFile && component.path) {
+ return component.path;
+ } else {
+ return component.name;
+ }
+}
+
+
const Component = ({ component, onBrowse }) => {
const handleClick = (e) => {
e.preventDefault();
};
return (
- <Truncated title={component.name}>
+ <Truncated title={getTooltip(component)}>
<QualifierIcon qualifier={component.qualifier}/>
{' '}
{onBrowse ? (