import { Kaimei1 } from "@/assets";
import { StaticImageData } from "next/image";
import { SetStateAction } from "react";

//// ============ tool's types ============ //////
export interface TitleType {
  text: string;
}

export interface productFilterTypes {
  name: string;
  image: StaticImageData | string;
}

export interface MainProductCard {
  uzunlik?: string;
  kenglik?: string;
  balandlik?: String;
  yukqob?: String;
  makBalandlik?: string;
}

export interface ProductCardType extends MainProductCard {
  image?: StaticImageData[];
  title?: string;
  y_turi?: string;
  hajmi?: string;
  tezlik?: string;
  interkuler?: string;
  quvvat?: string;
  quti?: string;
  turboDizel?: string;
  ogirlig?: string;
  bomUzunlik?: string;
}

export interface ProductTypes {
  id: number;
  truck_name: string;
  desc: string;
  image: string | StaticImageData;
}

export interface innerCardTypes {
  id: number;
  image: StaticImageData | string;
  name: string;
  min_order_time: number;
  price?: number;
  path: string;

  // 🧩 Umumiy texnik xususiyatlar
  weight_kg?: number; // Og‘irligi (kg)
  maxLength_m?: number; // Maksimum uzunligi (m)
  maxHeight_m?: number; // Maksimum balandligi (m)
  capacity_tons?: number; // Yuk ko‘tarish qobiliyati (tonna)
  capacity_kg?: number; // Yuk ko‘tarish qobiliyati (kg)
  fuelType?: string; // Yoqilg‘i turi
  tankVolume_m3?: number; // Tank hajmi (m³)
  maxSpeed_kmh?: number; // Maksimum tezligi (km/soat)
  intercooler?: string; // Interkuler bor/yo‘q
  enginePower_hp?: string; // Dvigatel quvvati (ot kuchi)
  transmission?: string; // O‘tkazmalar qutisi turi
  bom?: number; // Minora kranlar bom uzunligi
  qazish?: number; // ekskavator qazish chuqurligi
  pichoq?: number; // avtogreyder pichoq uzunligi
  zichlash?: number; // katka asfalt zichlovchi
  siqish?: number; // kampressor siqish bosimi
  havo?: number; // kampressor havo sig'imi
  kompressor_sig?: number; // kampressor sig'imi
  towingCapacity_tons?: number; // evakuator ko'taruvchi og'irlik
  armLength_m?: number; // evakuator uzunligi

  // 🟢 Qo‘shimcha shalanda / treller tipelar
  wheelCount?: number; // G‘ildiraklar soni
  brakingSystem?: string; // Tormoz tizimi

  // 🟢 Asfalt mashinalari uchun qo‘shimcha
  pavingWidth_m?: number; // Asfalt yotqizuvchi kengligi
  pavingDepth_cm?: number; // Asfalt qatlamining chuqurligi
  conveyorLength_m?: number; // Asfalt kochiruvchi konveyer uzunligi
  conveyorCapacity_tons?: number; // Bir marta ko‘chiradigan asfalt hajmi

  // 🟢 Betonniy nasos mashinalari uchun qo‘shimcha
  pumpLength_m?: number; // Beton nasosning uzatish (quvur) uzunligi (metr)
  pumpCapacity_m3h?: number; // Betonni soatiga uzatish hajmi (m³/soat)

  // 🔵 Vodovoz / Assenizator uchun qo‘shimchalar:
  pumpPower_hp?: number; // Nasos quvvati
  pumpType?: string; // Nasos turi

  manipulatorCapacity_tons?: number; // manipulyator yuk ko‘tarishi
  manipulatorArm_m?: number; // manipulyator strela uzunligi
}

export const defaultDetail: innerCardTypes = {
  id: 1,
  image: Kaimei1,
  name: "Mashina topilmadi",
  min_order_time: 4,
  price: 600000,
  path: "",
};
