// @bun
import y from"@contractspec/lib.ui-link";import{ChevronRight as z}from"lucide-react";import{jsx as f,jsxs as q}from"react/jsx-runtime";function E(){return q("div",{className:"space-y-8",children:[q("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."})]}),q("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`})})]}),q("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`})})]}),q("div",{className:"space-y-4",children:[f("h2",{className:"font-bold text-2xl",children:"Best practices"}),q("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"})]})]}),q("div",{className:"flex items-center gap-4 pt-4",children:[f(y,{href:"/docs/integrations/postmark",className:"btn-ghost",children:"Previous: Postmark"}),q(y,{href:"/docs/integrations/gmail",className:"btn-primary",children:["Next: Gmail API ",f(z,{size:16})]})]})]})}export{E as IntegrationsResendPage};
