diff --git a/app/[lang]/[carType]/[carDeatil]/page.tsx b/app/[lang]/[carType]/[carDeatil]/page.tsx
index f4a7196..3c3990b 100644
--- a/app/[lang]/[carType]/[carDeatil]/page.tsx
+++ b/app/[lang]/[carType]/[carDeatil]/page.tsx
@@ -1,13 +1,53 @@
-"use client"
+'use client';
-import { useCarDetail } from '@/components/lib_components/carDetailProvider'
-import React from 'react'
+import { useCarDetail } from '@/components/lib_components/carDetailProvider';
+import Text from '@/components/lib_components/text';
+import Image from 'next/image';
+import React from 'react';
+
+export default function CarDetailPage() {
+ const { detail } = useCarDetail();
+
+ // 1️⃣ Null holatni boshqarish
+ if (!detail) {
+ return (
+
+
+
+ );
+ }
-export default function page() {
- const {detail} = useCarDetail();
return (
-
- {detail?.name}
+
+ {/* 2️⃣ Mahsulot nomi */}
+
+
+
+
+
+ {/* 3️⃣ Rasmini ko‘rsatish */}
+
+
+
+
+ {/* 4️⃣ Ma’lumotlar bloki */}
+
+
+ {' '}
+ {detail.price?.toLocaleString('uz-UZ')} so‘m
+
+
+ {detail.min_order_time}{' '}
+
+
+
+
- )
+ );
}
diff --git a/components/carPageParts/carType_head.tsx b/components/carPageParts/carType_head.tsx
index 5a5e719..448261b 100644
--- a/components/carPageParts/carType_head.tsx
+++ b/components/carPageParts/carType_head.tsx
@@ -47,9 +47,12 @@ export default function CarType_Header() {
/
-
+
-
+
+ {params.carDeatil && '/'}
+ {params.carDeatil &&
+
}
diff --git a/types/index.ts b/types/index.ts
index 771ddda..a9db14d 100644
--- a/types/index.ts
+++ b/types/index.ts
@@ -1,3 +1,4 @@
+import { Kaimei1 } from "@/assets";
import { StaticImageData } from "next/image";
import { SetStateAction } from "react";
@@ -49,3 +50,12 @@ export interface innerCardTypes{
price?:number;
path:string;
}
+
+export const defaultDetail : innerCardTypes = {
+ id:1,
+ image:Kaimei1,
+ name:'Mashina topilmadi',
+ min_order_time:4,
+ price:600000,
+ path:''
+}