mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
🔷 refactor context menu to accept context src
🔷 add a getCurrentDate function to get formatted date
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Option } from "../interfaces";
|
||||
|
||||
export default async () => {
|
||||
const deletePlaylist: Option = {
|
||||
label: "Delete playlist",
|
||||
critical: true,
|
||||
action: () => {
|
||||
console.log("delete playlist");
|
||||
},
|
||||
};
|
||||
|
||||
const playNext: Option = {
|
||||
label: "Play next",
|
||||
action: () => {
|
||||
console.log("play next");
|
||||
},
|
||||
};
|
||||
|
||||
const addToQueue: Option = {
|
||||
label: "Add to queue",
|
||||
action: () => {
|
||||
console.log("add to queue");
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
return [playNext, addToQueue, deletePlaylist];
|
||||
};
|
||||
Reference in New Issue
Block a user