mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 01:31:46 +00:00
25 lines
376 B
JavaScript
25 lines
376 B
JavaScript
const { triggerAction } = require('../utils');
|
|
|
|
const CHANNEL = 'navigation';
|
|
const ACTIONS = {
|
|
NEXT: 'next',
|
|
BACK: 'back',
|
|
};
|
|
|
|
function goToNextPage() {
|
|
triggerAction(CHANNEL, ACTIONS.NEXT);
|
|
}
|
|
|
|
function goToPreviousPage() {
|
|
triggerAction(CHANNEL, ACTIONS.BACK);
|
|
}
|
|
|
|
module.exports = {
|
|
CHANNEL,
|
|
ACTIONS,
|
|
actions: {
|
|
goToNextPage,
|
|
goToPreviousPage,
|
|
},
|
|
};
|