UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

22 lines 1.23 kB
import * as React from 'react'; export function getWhoDunItElements(props) { const { item, showCreated, showModified, showPublished } = props; const modifiedString = showModified === true ? `Modified${item.modifiedLoc} - ${item['Editor/Title']}` : ''; const WhoDates = React.createElement("div", { className: 'whoDateStamps' }, showCreated !== true || item.FirstPublishedDate ? null : React.createElement("div", { className: 'dateStamps', title: modifiedString }, React.createElement("div", null, "Created"), " ", React.createElement("div", null, item.createdLoc), " ", React.createElement("div", null, item['Author/Title'])), showPublished !== true ? null : React.createElement("div", { className: 'dateStamps', title: modifiedString }, React.createElement("div", null, "Published"), " ", React.createElement("div", null, item.FirstPublishedDate ? item.FirstPublishedDate : 'NOT YET PUBLISHED'), " ", React.createElement("div", null))); return WhoDates; } //# sourceMappingURL=getWhoDunIt.js.map