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