Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

438 B
Raw Blame
import { type JSX } from 'react';

import { CLOUDFLARE_TURNSTILE_SITE_KEY } from '../../constants';

interface CloudflareTurnstileWidgetProps {
  containerRef: React.RefObject<HTMLDivElement | null>;
}

export function CloudflareTurnstileWidget({
  containerRef,
}: CloudflareTurnstileWidgetProps): JSX.Element | null {
  if (!CLOUDFLARE_TURNSTILE_SITE_KEY) {
    return null;
  }

  return <div ref={containerRef} className="mb-3" />;
}