catalog part connected to backend , added empty data and loading component

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-05 19:56:23 +05:00
parent 3cf5e0efcf
commit 34cb524626
12 changed files with 249 additions and 19 deletions

39
lib/types.ts Normal file
View File

@@ -0,0 +1,39 @@
export interface CategoryType {
id: number;
name: string;
image: string;
description: string;
}
export interface SubCategoryType {
id: number;
name: string;
category: number;
image: string;
}
export interface ProductsPageTypes {
id: number;
name: string;
image: string;
}
export interface ProductImage {
id: number;
product: number;
image: string;
is_main: boolean;
order: number;
}
export interface ProductDetail {
id: number;
name: string;
articular: string;
status: string;
description: string;
size: number;
price: string;
features: string[];
images: ProductImage[];
}