playlistQueue.js 404 B

1234567891011121314151617181920212223
  1. export const SELECT_PLAYLIST = "SELECT_PLAYLIST";
  2. export const DESELECT_PLAYLISTS = "DESELECT_PLAYLISTS";
  3. export const ADD_SONG = "ADD_SONG";
  4. export function selectPlaylist(playlistId) {
  5. return {
  6. type: SELECT_PLAYLIST,
  7. playlistId,
  8. };
  9. }
  10. export function deselectPlaylists() {
  11. return {
  12. type: DESELECT_PLAYLISTS,
  13. };
  14. }
  15. export function addSong(songId) {
  16. return {
  17. type: ADD_SONG,
  18. songId,
  19. };
  20. }