Files
cash-stacks/frontend/src/hooks/getMany/useTransactions.ts
T
2021-07-14 15:08:15 -06:00

6 lines
200 B
TypeScript

import { Transaction } from '../../types'
import { useGet } from '../util/useGet'
export const useTransactions = (accountId: string) =>
useGet<Transaction[]>(`/accounts/${accountId}/transactions`)