UNPKG

@bigfishtv/cockpit

Version:

47 lines (41 loc) 1.14 kB
/** * @module Actions/imageFilterPresets */ import { IMAGE_FILTER_PRESET_ADDED, IMAGE_FILTER_PRESETS_ADDED, IMAGE_FILTER_PRESET_REMOVED, IMAGE_FILTER_PRESETS_REMOVED, } from '../constants/ActionTypes' /** * Action for adding an image filter preset * @param {Object} preset * @return {Object} returns action */ export function addImageFilterPreset(preset) { return { type: IMAGE_FILTER_PRESET_ADDED, preset } } /** * Action for adding multiple image filter presets * @param {Object[]} presets * @return {Object} returns action */ export function addImageFilterPresets(presets) { return { type: IMAGE_FILTER_PRESETS_ADDED, presets } } /** * Action for removing an image filter preset * @param {String} presetTitle * @return {Object} returns action */ export function removeImageFilterPreset(presetTitle) { return { type: IMAGE_FILTER_PRESET_REMOVED, presetTitle } } /** * Action for removing multiple image filter preset * @param {String[]} presetTitles * @return {Object} returns action */ export function removeImageFilterPresets(presetTitles) { return { type: IMAGE_FILTER_PRESETS_REMOVED, presetTitles } }