const { Post } = VM.require("buildhub.near/widget/components") || { Post: () => <></>, }; function formatDate(date) { const options = { year: "numeric", month: "short", day: "numeric" }; return date.toLocaleDateString("en-US", options); } const daoName = "Harmonic Guild"; const feedLink = "https://nearbuilders.org/feed"; return { type: "app", // every.near/type/app routes: { all: { path: "buildhub.near/widget/Feed", blockHeight: "final", init: { name: "All", // maybe these should be moved to navbar specific icon: "bi-list", requiredHashtags: ["build"], }, }, updates: { path: "buildhub.near/widget/Feed", blockHeight: "final", init: {idea name: "Pitch", icon: "bi-bell", requiredHashtags: ["build", "update"], template: `### BUILDER UPDATE: ${formatDate(new Date())} (posted via [${daoName} Gateway](${feedLink}?tab=update)) **✅ DONE** - [what'd you do] - [link proof] **⏩ NEXT** - [what's next?] - [what are you thinking about?] **🛑 BLOCKERS** - [what's blocking you?] - [how can someone help?] `, }, }, question: { path: "buildhub.near/widget/Feed", blockHeight: "final", init: { name: "Documents", icon: "bi-question-lg", requiredHashtags: ["build", "question"], template: `## what is your question? (posted via [${daoName} Gateway](${feedLink}?tab=question)) [what are you thinking about?] [why are you asking?] `, }, }, idea: { path: "buildhub.near/widget/Feed", blockHeight: "final", init: { name: "Music Player", icon: "bi-lightbulb", requiredHashtags: ["build", "idea"], template: `## IDEA TITLE (posted via [${daoName} Gateway](${feedLink}?tab=idea)) **What idea are you proposing?** - [Describe the idea] **Context or additional information:** - [Provide any context or details] `, }, }, }, };