/* eslint-disable react/no-unused-prop-types */
import Image from "next/image";
import type { PropsWithChildren } from "react";
import type { ButtonProps } from "@/components/ui/button/button";
import { Button } from "@/components/ui/button/button";
import Card from "@/components/ui/card/card";
import { Carousel } from "@/components/ui/carousel/carousel";
import type { LIconProps } from "@/components/ui/lucid-icon/lucid-icon";
import LIcon from "@/components/ui/lucid-icon/lucid-icon";
import { cn } from "@/libs/utils";
export interface FlightBrandProps {
logoSrc: string;
brandName: string;
flightCode: string;
}
interface FlightTimeProps {
totalFlightHours: string;
flightStartTime: string;
startIATACode: string;
endStartTime: string;
endIATACode: string;
transferInformation: string;
transferIATACodes?: string;
}
interface FlightInformationProps extends PropsWithChildren {
seatInformation?: string;
baggageInformation?: string;
flightClass: string;
}
interface FlightPriceProps {
price: string;
isOptimal?: boolean;
}
interface FlightDetailActionProps {
infoText?: string;
onClick: () => void;
isOpen: boolean;
operatingCompanies?: string[];
buttonVariant?: ButtonProps["variant"];
buttonText?: string;
renderActionButton?: () => React.ReactNode;
}
interface FlightDetailProps extends PropsWithChildren {
active: boolean;
}
interface FlightProperties {
icon?: LIconProps;
text: string;
}
interface FlightDetailCardProps {
flightClass: string;
price: string;
properties: FlightProperties[];
buttonOnClick?: () => void;
}
const FlightCard = ({ children }: PropsWithChildren) => {
return (