You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 800B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {
  2. SET_FILMSTRIP_HOVERED,
  3. SET_FILMSTRIP_VISIBILITY
  4. } from './actionTypes';
  5. /**
  6. * Sets if the filmstrip is currently being hovered over.
  7. *
  8. * @param {boolean} hovered - Whether or not the filmstrip is currently being
  9. * hovered over.
  10. * @returns {{
  11. * type: SET_FILMSTRIP_HOVERED,
  12. * hovered: boolean
  13. * }}
  14. */
  15. export function setFilmstripHovered(hovered) {
  16. return {
  17. type: SET_FILMSTRIP_HOVERED,
  18. hovered
  19. };
  20. }
  21. /**
  22. * Sets if the entire filmstrip should be visible.
  23. *
  24. * @param {boolean} visible - Whether not the filmstrip is visible.
  25. * @returns {{
  26. * type: SET_FILMSTRIP_VISIBILITY,
  27. * visible: boolean
  28. * }}
  29. */
  30. export function setFilmstripVisibility(visible) {
  31. return {
  32. type: SET_FILMSTRIP_VISIBILITY,
  33. visible
  34. };
  35. }