@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
30 lines (28 loc) • 1.3 kB
JavaScript
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
*/
/**
* CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
* Update:: import { IItemIsAKeys } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IsA/IFPSItemIsA;'
*/
import * as React from 'react';
// import { UniversalIconsPTAny } from './BuildContentElements';
import { UniversalIconsPT } from '../Icons/standardUniversalFPS';
const UniversalIconsPTAny = UniversalIconsPT;
export function createItemHighlights(item, style, surpressIsAKeys) {
const highlights = [];
if (item.FPSItem && Object.keys(item.FPSItem.IsA).length > 1) {
Object.keys(item.FPSItem.IsA).map((key) => {
if (key !== `allIsAKeys` && surpressIsAKeys.indexOf(key) < 0) {
highlights.push(UniversalIconsPTAny[key]);
}
});
}
return highlights.length === 0 ? undefined : React.createElement("div", { style: style },
" ",
highlights,
" ");
}
//# sourceMappingURL=createItemHighlights.js.map