myprojectpackageprav
Version:
My package in npm
45 lines • 2.23 kB
JavaScript
import { AllPrograms, Actions, Notifications } from './notifications-data';
import { Link } from "react-router-dom";
export default function Notificationtabcontent(props) {
var notificationItems = [];
if (props.tabId === 'all') {
notificationItems = AllPrograms;
console.log(AllPrograms);
}
if (props.tabId === 'actions') {
notificationItems = Actions;
}
if (props.tabId === 'notifications') {
notificationItems = 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(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)));
}
//# sourceMappingURL=notification-items.js.map