@tabnews/ui
Version:
TabNews UI
46 lines (45 loc) • 813 B
JavaScript
const i = {
notifications: [],
setMenuOpen: () => {
},
labels: {
notifications: "Notifications",
close: "Close",
empty: "No notifications available",
loading: "Loading...",
openActionsMenu: "Open menu",
getBellLabel: n
},
selectors: {
notificationTrailingAction: "data-tabnews-ui-notification-action"
}
};
function n(e) {
switch (!0) {
case e === 0:
return "No unread notifications";
case e === 1:
return "1 unread notification";
case e > 1:
return `${e} unread notifications`;
default:
return "Notifications";
}
}
function t(e = {}) {
return {
...i,
...e,
labels: {
...i.labels,
...e.labels
},
selectors: {
...i.selectors,
...e.selectors
}
};
}
export {
t as getConfig
};