import { TruckTypeType } from "../../types/truckType"; import { RegionWiseBranchesType } from "../../types/regionWiseBranch"; import { ReactNode, MouseEventHandler} from 'react' export interface BranchProps { id: number; name: string, tripsCount: number } interface LoadingUnloadingPointProps { cityName: string | null } interface TruckAdditionalTypeData { name: string | null } interface AdditionalTruckRequirement { truck_requirement_type_id: number | null name: string | null } interface truckAdditionalData { tarpoline_count: number | null truck_height: number | null truck_breadth: number | null additional_truck_requirements: AdditionalTruckRequirement[] } export interface TripData { id: number; ton: number; materialName: string; truckTypeName: string; sourceName: string; destinationName: string; sourceStateCode?: string; destinationStateCode?: string; price: number; trafficName: string; loadingUnloadingPoint: LoadingUnloadingPointProps[] tagNames: Array; isCreatedAtLessThan30Mins:boolean; isViewed?: boolean; humanReadableCreatedAt: string; isInterested: boolean; isInterestLoading: boolean trafficMobile: string; manipulatedMobile: string; truck_type_group_id: number | null; partner_price_per_ton?: number | nul; is_price_per_ton?: boolean trip_additional_truck_requirements?: truckAdditionalData[] employee_languages: string[] trafficRating?: string isTopay: boolean podType: string | null softPodLabel?: string } export interface TripCardProps { tripData: TripData; onClickTripCard: Function; translatedTon: string | null; translatedStops: string; translatedDimension: string | null; translatedTarpulin: string| null; handleInterest: Function; employeeLanguages: string[]; translatedTexts: {trafficAgent: string, speaks: string, noRating?: string, toPay?: string, newLabel?: string, viewedLabel?: string, nos?: string, more?: string} } export interface TrafficContact { id?: number; name?: string; mobile: string; branch_id?: number; language?: string; user_id:number; truck_type:string } export interface AllLoadsProps { branchData: BranchProps[]; onClickBranch: Function; onClickTrip: Function; tripsData: TripData[]; translatedLoads: string; translatedTon: string; translatedStops: string; isTripCard: boolean; contactDetail: TrafficContact[]; onClickCall: Function; handleInterest: Function; translatedTarpulin?: string | null; translatedDimension?: string | null; onClickShowMore: Function; translatedText?:TranslatedText showMoreLoading?: boolean onClickChat: Function } interface TranslatedText { showMore?: string; trafficAgent?: string; speaks?: string; noRating?: string; toPay?: string; newLabel?: string; viewedLabel?: string; nos?: string; more?: string }; interface TranslatedWords { translatedFilter: string; translatedTruckTypes: string; translatedCities: string; translatedReset: string; translatedShowResult: string; } export interface FilterProps { icon: ReactNode; truckTypes: TruckTypeType; regions: RegionWiseBranchesType; multiSelect: boolean; lang: "en" | "hi" | "ta" | "kn" | "bn" | "te"; truckTypeCallback: Function; branchCallback: Function; onReset: any | MouseEventHandler; onShowResult: any | MouseEventHandler; defaultTruckTypeIds?: number[]; defaultBranchIds?: number[]; translatedWords: TranslatedWords; }