Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
IRC
/
ClientApp
/
src
/
helpers
/
View File Name :
getTextLabel.ts
interface dataProps { Text?: string; Value: string; Key?: string | number; } interface Label { label: string; value: string | number; } export const Arrays = (data: [dataProps]) => { let arrayItem: any = []; if (data && Array.isArray(data)) { data.map((item, key) => { arrayItem.push({ label: item.Text, value: item.Value }); }); } return arrayItem; }; export const ArraysKey = (data: [dataProps]) => { let arrayItem: any = []; if (data && Array.isArray(data)) { data.map((item, key) => { arrayItem.push({ label: item.Value, value: item.Key }); }); } return arrayItem; }; type EmployeeLabel = { FullName: string; EmployeeId: string | number; Imagepath: string; }; export const ArraysWithImage = (data: [EmployeeLabel]) => { let arrayItem: any = []; if (data) { data.map((item, key) => { item && arrayItem.push({ label: item.FullName, value: item.EmployeeId, img: item.Imagepath, }); }); } return arrayItem; };