import type { Lang } from "@/constants/languages"
import type { UserQueryRouter } from "../user"

export type TransactionResponse = Awaited<
  ReturnType<UserQueryRouter["transaction"]["friendTransactions"]>
>
export type TransactionsNonNullResponseObject = NonNullable<TransactionResponse>
export type Transactions = NonNullable<TransactionsNonNullResponseObject>["data"]
export type Transaction = NonNullable<TransactionsNonNullResponseObject>["data"][number]

export type ClientEarnAndBurnProps = {
  initialData: TransactionsNonNullResponseObject
  lang: Lang
}

export type EarnAndBurnProps = {
  lang: Lang
}

export interface TableProps {
  lang: Lang
  transactions: Transactions
}

export interface RowProps {
  lang: Lang
  transaction: Transaction
}
