File size: 396 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import type { AtomicTransfer, AtomicTransferError } from './actions';
import type { AppState } from 'calypso/types';
import 'calypso/state/atomic/init';
const emptyData = {};
export const getLatestAtomicTransfer = (
state: AppState,
siteId: number | null
): { transfer?: AtomicTransfer; error?: AtomicTransferError } =>
siteId ? state?.atomicTransfers?.[ siteId ] ?? emptyData : emptyData;
|