feat: add Paginator component with navigation functionality and integrate into reutilizables test page

This commit is contained in:
2026-06-29 16:04:07 -03:00
parent 286e56c979
commit fe4eebb685
9 changed files with 338 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
import { ApiResponse } from './api-response.interface';
export interface ApiPaginationMetaLink {
url: string | null;
label: string;
active: boolean;
}
export interface ApiPaginationMeta {
current_page: number;
from: number | null;
last_page: number;
links: ApiPaginationMetaLink[];
path: string;
per_page: number;
to: number | null;
total: number;
}
export interface ApiPaginationLinks {
first: string;
last: string;
prev: string | null;
next: string | null;
}
export interface ApiPaginatedResponse<T> extends ApiResponse<T> {
meta: ApiPaginationMeta;
links: ApiPaginationLinks;
}