MyCrypto/common/features/transactions/selectors.ts

11 lines
311 B
TypeScript

import { SavedTransaction } from 'types/transactions';
import { AppState } from 'features/reducers';
export function getTransactionDatas(state: AppState) {
return state.transactions.txData;
}
export function getRecentTransactions(state: AppState): SavedTransaction[] {
return state.transactions.recent;
}