import { EmailIcon } from "@/assets/icons";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { useTranslations } from "next-intl";
export default function Newsletter() {
  const t = useTranslations("footer");
  return (
    <div className="flex flex-col gap-4 lg:[margin-inline-start:auto] w-full md:max-w-[460px]">
      <h3 className="text-text text-[12px] md:text-[18px] font-bold">
        {t("newsletterTitle")}
      </h3>
      <div className="flex flex-col sm:flex-row gap-4">
        <Input
          type="email"
          placeholder={t("placeholder")}
          icon={<EmailIcon />}
        />
        <Button className="h-[44px]! text-[14px]! px-4! w-fit">
          {t("newsletterButton")}
        </Button>
      </div>
    </div>
  );
}
