Adds action

This commit is contained in:
apane 2019-11-20 10:38:09 -03:00
parent a4b92ca4e1
commit ad3d27e927
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// @flow
import { Map } from 'immutable'
import { createAction } from 'redux-actions'
import type { Cookie, CookiesProps } from '~/logic/cookies/store/model/cookie'
export const SET_COOKIES_PERMISSIONS = 'SET_COOKIES_PERMISSIONS'
// eslint-disable-next-line max-len
export const setCookiesPermissions = createAction<string, *>(SET_COOKIES_PERMISSIONS, (cookies: Map<string, Cookie>): CookiesProps => cookies)