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;