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;
  path: string;
  image: string | StaticImageData;
}

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