import Image from "next/image";

interface LotteryHeaderProps {
  title: string;
  description: string;
  image: string;
  smsCode: string;
}

const LotteryHeader = ({
  title,
  description,
  image,
  smsCode,
}: LotteryHeaderProps) => {
  return (
    <section className="container">
      <div className="flex flex-col md:gap-[32px] gap-[24px]">
        <div className="flex flex-col gap-[24px] items-center">
          <h1 className="sm:font-display-1-regular text-[32px] leading-[40px] text-center">
            {title}
          </h1>
          <p className="text-center text-textLarge leading-textLarge">
            {description}
          </p>
          <div className="flex items-center gap-[8px]">
            <span>SMS-kod: {smsCode}</span>
          </div>
        </div>
        {image && (
          <div className="md:mb-8 sm:mb-[40px] mb-[16px]">
            <Image
              src={image}
              width={1416}
              height={177}
              alt="banner"
              className="rounded-[12px] object-cover h-[177px]"
            />
          </div>
        )}
      </div>
    </section>
  );
};

export default LotteryHeader;
