import{jsxs as a,jsx as r}from"react/jsx-runtime";import{u}from"./use-lang-Cw_jKJYs.js";import{c}from"./ui-components-B24mpb8o.js";import{useForm as p}from"@inertiajs/react";import{B as b}from"./button-gradient-primary-BCGlXQYd.js";import{I as d}from"./input-error-BbsDx4-P.js";const S=({className:t,buttonText:s})=>{const{input:m}=u(),{data:o,setData:i,post:l,errors:n}=p({email:""});return a("form",{onSubmit:e=>{e.preventDefault(),l(route("subscribes.store"))},className:c("relative z-10",t),children:[a("div",{className:"bg-background text-primary flex items-center justify-between gap-2 rounded-md border border-gray-400",children:[r("input",{type:"email",name:"email",value:o.email,onChange:e=>i("email",e.target.value),className:"h-[50px] w-full px-4 focus:outline-0",placeholder:m.email_placeholder}),r(b,{type:"submit",shadow:!1,className:"mr-1",children:s||"Subscribe"})]}),r(d,{message:n.email})]})};export{S};
