accounts-frontend/packages/app/components/ui/popup/actions.ts

18 lines
344 B
TypeScript
Raw Normal View History

2019-12-07 16:58:52 +05:30
import { PopupConfig } from './reducer';
export const POPUP_CREATE = 'POPUP_CREATE';
export function create(payload: PopupConfig) {
return {
type: POPUP_CREATE,
payload,
};
}
export const POPUP_DESTROY = 'POPUP_DESTROY';
export function destroy(popup: PopupConfig) {
return {
type: POPUP_DESTROY,
payload: popup,
};
}