import Image from "next/image";
import { Carousel } from "@/app/components/Carousel";
import { countriesFlagsData } from "../_data/home-data";
import Heading from "@/app/components/ui/Heading";
import { ContainerSm } from "@/app/components/layout/ContainerSm";

export function ExportingCountries() {
  return (
    <section className="flex justify-center mt-32">
      <ContainerSm>
        <div className="flex flex-col gap-8 lg:gap-16">
          <Heading
            as="h2"
            variant="section"
            className="text-primary text-center"
          >
            Top Exporting Countries
          </Heading>
          <div className="flex flex-col lg:flex-row gap-8">
            <p className="w-full lg:w-1/2 text-gray-600">
              Basmati rice, renowned for its unique aroma and long grains, is
              primarily exported by countries like India and Pakistan, which
              dominate the global market. Other significant exporters include
              Bangladesh and Nepal. These countries capitalize on the growing
              international demand for basmati, especially in regions like the
              Middle East, Europe, and North America.
            </p>
            <div className="w-full lg:w-1/2">
              <Carousel>
                <div className="flex gap-2">
                  {countriesFlagsData.map((flag, index) => (
                    <Image
                      key={index}
                      src={flag}
                      alt={`basmati rice exporting country's national flag`}
                      width={100}
                      height={100}
                      className="w-auto h-36"
                    />
                  ))}
                </div>
              </Carousel>
            </div>
          </div>
        </div>
      </ContainerSm>
    </section>
  );
}
