File size: 553 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import { ACCOUNT_CLOSE, ACCOUNT_CLOSE_SUCCESS, ACCOUNT_RESTORE } from 'calypso/state/action-types';
import 'calypso/state/data-layer/wpcom/me/account/close';
import 'calypso/state/data-layer/wpcom/me/account/restore';
import 'calypso/state/account/init';
export function closeAccount() {
return {
type: ACCOUNT_CLOSE,
};
}
export function closeAccountSuccess( response ) {
return {
type: ACCOUNT_CLOSE_SUCCESS,
payload: response,
};
}
export function restoreAccount( token ) {
return {
type: ACCOUNT_RESTORE,
payload: { token },
};
}
|