feat: add product generation and pagination components
- Implemented product generation for categories with a helper function to create 50 products per category. - Added image assets for English and Persian language support. - Created a reusable Pagination component for navigating through product lists. - Developed ProductList component to display products with pagination support. - Defined TypeScript interfaces for product list props and API response structure.
This commit is contained in:
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
export interface IResponse<T> {
|
||||
pagination: IPagination;
|
||||
data: T;
|
||||
}
|
||||
|
||||
export interface IPagination {
|
||||
page: number;
|
||||
perPage: number;
|
||||
total: number;
|
||||
totalPages: number;
|
||||
}
|
||||
Reference in New Issue
Block a user