Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / mail / forwarding / hooks.ts
blob4a1b3b3adec3ce73e36601c434a3dd305365badc
1 import { createHooks } from '@proton/redux-utilities';
3 import { incomingAddressForwardingsThunk, selectIncomingForwarding } from './incoming';
4 import { outgoingAddressForwardingsThunk, selectOutgoingForwarding } from './outgoing';
6 const incomingHooks = createHooks(incomingAddressForwardingsThunk, selectIncomingForwarding);
7 const outgoingHooks = createHooks(outgoingAddressForwardingsThunk, selectOutgoingForwarding);
9 export const useIncomingAddressForwardings = incomingHooks.useValue;
10 export const useGetIncomingAddressForwardings = incomingHooks.useGet;
11 export const useOutgoingAddressForwardings = outgoingHooks.useValue;
12 export const useGetOutgoingAddressForwardings = outgoingHooks.useGet;