import type { FinanceType, FinanceStatus } from "./schema";

export type FinanceActionState = {
  ok: boolean;
  error?: string;
};

export const initialFinanceActionState: FinanceActionState = { ok: false };

export const FINANCE_TYPE_LABELS: Record<FinanceType, string> = {
  income: "Gelir",
  expense: "Gider",
  receivable: "Alacak",
  payable: "Borç",
};

export const FINANCE_STATUS_LABELS: Record<FinanceStatus, string> = {
  pending: "Bekliyor",
  paid: "Ödendi",
  cancelled: "İptal",
};
