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.

1234567891011121314151617181920212223242526272829
  1. import { ReducerRegistry } from '../base/redux';
  2. import {
  3. SET_FILMSTRIP_HOVERED,
  4. SET_FILMSTRIP_VISIBILITY
  5. } from './actionTypes';
  6. const DEFAULT_STATE = {
  7. visible: true
  8. };
  9. ReducerRegistry.register(
  10. 'features/filmstrip',
  11. (state = DEFAULT_STATE, action) => {
  12. switch (action.type) {
  13. case SET_FILMSTRIP_HOVERED:
  14. return {
  15. ...state,
  16. hovered: action.hovered
  17. };
  18. case SET_FILMSTRIP_VISIBILITY:
  19. return {
  20. ...state,
  21. visible: action.visible
  22. };
  23. }
  24. return state;
  25. });