`
}
export function backdropLink(link, text) {
return `${text}`
}
export function settingsCategory(obj) {
return `
${obj.title ? obj.title : obj.name}
${obj.body}
`
}
export function footerButtons(obj) {
let items = ``
for (let i = 0; i < obj.length; i++) {
switch (obj[i]["type"]) {
case "toggle":
items += ``;
break;
case "action":
items += ``;
break;
case "popup":
let context = obj[i]["context"] ? `, '${obj[i]["context"]}'` : ''
let context2 = obj[i+1] && obj[i+1]["context"] ? `, '${obj[i+1]["context"]}'` : ''
items += `
`;
i++;
break;
}
}
return `
`
}
export function explanation(text) {
return `
${text}
`
}
export function celebrationsEmoji() {
let n = new Date().toISOString().split('T')[0].split('-');
let dm = `${n[1]}-${n[2]}`;
return Object.keys(celebrations).includes(dm) ? celebrations[dm] : "🐲";
}