export function contentTypeGenerator( sheetContentType: string, commentId: number[], arrTypes: string[], sheetDrawers: string[], checkboxForm: string[], needCalcChain: boolean, tableRef: string[] ) { let typeCheck: { [key: string]: boolean; } = {}; return ( '\n' + '' + '' + '' + '' + "' + '' + '' + arrTypes.reduce((res, curr) => { curr = curr.toLowerCase(); if (typeCheck[curr]) { return res; } if (curr == "svg") { typeCheck["png"] = true; typeCheck["svg"] = true; return ( res + '' + '' ); } else if (curr == "jpeg" || curr == "jpg") { typeCheck["jpeg"] = true; typeCheck["jpg"] = true; return ( res + '' ); } else { typeCheck[curr] = true; return ( res + '' ); } }, "") + commentId.reduce((res, curr) => { return ( res + '' ); }, "") + sheetContentType + (tableRef.length > 0 ? tableRef.reduce((res, cur) => { return ( res + '' ); }, "") : "") + "' + (needCalcChain ? '' : "") + '' + sheetDrawers.reduce((res, cu) => { return ( res + '' ); }, "") + (checkboxForm.length > 0 ? checkboxForm.reduce((res, _, index) => { return ( res + '' ); }, "") : "") + '' + "" ); }