2017-05-23 18:58:07 +00:00
|
|
|
import {
|
2017-09-01 21:40:05 +00:00
|
|
|
SET_FILMSTRIP_HOVERED,
|
2017-05-23 18:58:07 +00:00
|
|
|
SET_FILMSTRIP_VISIBILITY
|
|
|
|
} from './actionTypes';
|
|
|
|
|
2017-09-01 21:40:05 +00:00
|
|
|
/**
|
|
|
|
* Sets if the filmstrip is currently being hovered over.
|
|
|
|
*
|
|
|
|
* @param {boolean} hovered - Whether or not the filmstrip is currently being
|
|
|
|
* hovered over.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_FILMSTRIP_HOVERED,
|
|
|
|
* hovered: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
export function setFilmstripHovered(hovered) {
|
|
|
|
return {
|
|
|
|
type: SET_FILMSTRIP_HOVERED,
|
|
|
|
hovered
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-05-23 18:58:07 +00:00
|
|
|
/**
|
|
|
|
* Sets if the entire filmstrip should be visible.
|
|
|
|
*
|
|
|
|
* @param {boolean} visible - Whether not the filmstrip is visible.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_FILMSTRIP_VISIBILITY,
|
|
|
|
* visible: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
export function setFilmstripVisibility(visible) {
|
|
|
|
return {
|
|
|
|
type: SET_FILMSTRIP_VISIBILITY,
|
|
|
|
visible
|
|
|
|
};
|
|
|
|
}
|