myprojectpackageprav
Version:
My package in npm
48 lines • 2.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var notifications_data_1 = require("./notifications-data");
var react_router_dom_1 = require("react-router-dom");
function Notificationtabcontent(props) {
var notificationItems = [];
if (props.tabId === 'all') {
notificationItems = notifications_data_1.AllPrograms;
console.log(notifications_data_1.AllPrograms);
}
if (props.tabId === 'actions') {
notificationItems = notifications_data_1.Actions;
}
if (props.tabId === 'notifications') {
notificationItems = notifications_data_1.Notifications;
}
var listItems = notificationItems.map(function (items) {
// <div className='mb-2'>
// <div tabIndex={0} aria-label={items.date} className="bordered p-2 py-1 title-color1 mb-1 latobold">
// {items.date}
// </div>
// <div tabIndex={0} aria-live="polite" className="meetings-border-left">
// <div className="d-flex justify-content-between title-color"> <span>{items.time}</span>
// <Buttons
// aria-label="Refresh"
// className='ms-auto text-decoration-none lh-1 p-0 btn-link'
// icon="icon-update font-10"
// type="button"
// />
// </div>
// <div className="title-color1 font-14">{items.title}</div>
// <div className="subtitle-color1">{items.venue}</div>
// </div>
// </div>
return React.createElement("li", { tabIndex: 0, "aria-describedby": items.id, id: items.id, className: items.listclassname, "notification-code": items.colorcode },
React.createElement("div", null,
React.createElement("span", null, items.content1),
React.createElement(react_router_dom_1.Link, { to: "#", title: items.idcontent, className: "links" }, items.idcontent),
React.createElement("span", null,
" ",
items.content2)),
React.createElement("div", { className: "subtitle-color2 latoregular" }, items.date));
});
return (React.createElement(React.Fragment, null,
React.createElement("ul", null, listItems)));
}
exports.default = Notificationtabcontent;
//# sourceMappingURL=notification-items.js.map