remixed v0

This commit is contained in:
m5r
2022-05-14 12:22:06 +02:00
parent 9275d4499b
commit 98b89ae0f7
338 changed files with 22549 additions and 44628 deletions

View File

@ -0,0 +1,38 @@
type Payment = {
id: number;
subscription_id: number;
amount: number;
currency: string;
payout_date: string;
is_paid: number;
is_one_off_charge: boolean;
receipt_url?: string;
};
export default function usePaymentsHistory() {
const payments: Payment[] = [];
const count = 0;
const skip = 0;
const pagesNumber = [1];
const currentPage = 0;
const lastPage = 0;
const hasPreviousPage = false;
const hasNextPage = false;
const goToPreviousPage = () => void 0;
const goToNextPage = () => void 0;
const setPage = (page: number) => void 0;
return {
payments,
count,
skip,
pagesNumber,
currentPage,
lastPage,
hasPreviousPage,
hasNextPage,
goToPreviousPage,
goToNextPage,
setPage,
};
}