You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
531 B
18 lines
531 B
import {LinkType} from '@ui/type'; |
|
import LeftItem from './left_item'; |
|
|
|
export const getLinks = (linkList: LinkType[], selectTitle = ''): any => { |
|
const links: any[] = []; |
|
linkList.forEach((item: LinkType) => { |
|
links.push({ |
|
type: LeftItem, |
|
extraCls: item.connectionName === selectTitle ? 'left-item-selected' : '', |
|
title: item.connectionName, |
|
id: item.connectionId, |
|
creator: item.creator, |
|
text: item.text ? item.text : BI.i18nText('Dec-Dcm_Default'), |
|
}); |
|
}); |
|
|
|
return links; |
|
};
|
|
|