25 lines
471 B
JavaScript
Raw Normal View History

2025-02-25 13:59:26 +01:00
export class MainMenu {
constructor(uiService) {
this.ui = uiService;
}
show = async () => {
this.ui.showLogo();
2025-02-25 13:59:26 +01:00
this.ui.showInfoMessage("hello");
await this.ui.askMultipleChoice("Select an option",[
{
label: "optionOne",
action: async function() {
console.log("A!")
}
},{
label: "optionTwo",
action: async function() {
console.log("B!")
}
},
])
2025-02-25 13:59:26 +01:00
};
}