UNPKG

react-waitlist

Version:

A customizable waitlist form component for React applications

19 lines (18 loc) 766 B
import { WaitlistProps } from '../core/types'; /** * Server-side waitlist component for frameworks with SSR support * This component can safely use the API key directly since it runs on the server */ export interface ServerWaitlistProps extends Omit<WaitlistProps, 'proxyEndpoint'> { /** Resend API key (required for server component) */ apiKey: string; /** reCAPTCHA site key (optional) */ recaptchaSiteKey?: string; } /** * Server-side waitlist component * Use this component in server-rendered contexts (Next.js App Router, Remix, etc.) * This is a true server component that renders a client component */ declare const ServerWaitlist: (props: ServerWaitlistProps) => import("react/jsx-runtime").JSX.Element; export default ServerWaitlist;