'use client';

import { ErrorDisplay as UiErrorDisplay } from '@/components/shared/ErrorDisplay';
import { ApiError } from '@/lib/gateways/api/base/ApiError';

interface ErrorDisplayProps {
  error: ApiError;
  onRetry?: () => void;
}

/**
 * User-friendly error display for production environments
 */
export function ErrorDisplay({ error, onRetry }: ErrorDisplayProps) {
  return (
    <UiErrorDisplay
      error={error}
      onRetry={onRetry}
      variant="full-screen"
    />
  );
}

/**
 * Full-screen error display with more context
 */
export function FullScreenError({ error, onRetry }: ErrorDisplayProps) {
  return (
    <UiErrorDisplay
      error={error}
      onRetry={onRetry}
      variant="full-screen"
    />
  );
}
