Files
ipal-kit/src/modules/turnstile/client.ts
T

8 lines
568 B
TypeScript

// No 'use client' on this barrel (1.18.0): every component behind it carries its own. A barrel with the
// directive is one client boundary, so a page that imported one export shipped ALL of them (docs/performance.md).
// Client-only exports — the Turnstile widget. Kept separate from index.ts so
// the server-only verify never leaks into a browser bundle.
export { Turnstile } from './Turnstile.js'
export type { TurnstileProps, TurnstileTheme } from './Turnstile.js'
export { TurnstileProvider, useOptionalTurnstile, useTurnstile } from './TurnstileProvider.js'