bokuweb/tsukiakari

View on GitHub
src/renderer/src/actions/lightbox.js

Summary

Maintainability
A
0 mins
Test Coverage
import { createAction } from 'redux-actions';

export const openLightBox = (images, number) => (
  createAction('OPEN_LIGHTBOX')({ images, number })
);

export const closeLightBox = () => (
  createAction('CLOSE_LIGHTBOX')()
);

export const showNextImage = () => (
  createAction('SHOW_NEXT_IMAGE')()
);

export const showPrevImage = () => (
  createAction('SHOW_PREV_IMAGE')()
);