// @bun
var E=Object.defineProperty;var F=(q)=>q;function G(q,y){this[q]=F.bind(null,y)}var J=(q,y)=>{for(var B in y)E(q,B,{get:y[B],enumerable:!0,configurable:!0,set:G.bind(y,B)})};var K=(q,y)=>()=>(q&&(y=q(q=0)),y);import D from"@contractspec/lib.ui-link";import{ChevronRight as H}from"lucide-react";import{jsx as f,jsxs as z}from"react/jsx-runtime";function Q(){return z("div",{className:"space-y-8",children:[z("div",{className:"space-y-4",children:[f("h1",{className:"font-bold text-4xl",children:"Resend"}),f("p",{className:"text-muted-foreground",children:"Resend is a modern email API built for developers. It provides a simple, reliable way to send transactional emails with React Email templates."})]}),z("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Setup"}),f("div",{className:"overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",children:f("pre",{children:`# .env
RESEND_API_KEY=re_...
RESEND_FROM_EMAIL=onboarding@resend.dev`})})]}),z("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Sending emails"}),f("div",{className:"overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",children:f("pre",{children:`capabilityId: resend-send-email
provider:
  type: resend
  operation: sendEmail

inputs:
  to:
    type: string
  subject:
    type: string
  html:
    type: string
  text:
    type: string
    optional: true
  replyTo:
    type: string
    optional: true

outputs:
  id:
    type: string`})})]}),z("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Best practices"}),z("ul",{className:"list-inside list-disc space-y-2 text-muted-foreground",children:[f("li",{children:"Use React Email for type-safe templates"}),f("li",{children:"Verify your domain for better deliverability"}),f("li",{children:"Monitor email analytics in the Resend dashboard"})]})]}),z("div",{className:"flex items-center gap-4 pt-4",children:[f(D,{href:"/docs/integrations/postmark",className:"btn-ghost",children:"Previous: Postmark"}),z(D,{href:"/docs/integrations/gmail",className:"btn-primary",children:["Next: Gmail API ",f(H,{size:16})]})]})]})}export{Q as IntegrationsResendPage};
