import React from 'react' interface ErrorStateProps { error: string onRetry?: () => void onGoBack?: () => void className?: string } export const ErrorState: React.FC = ({ error, onRetry, onGoBack, className = '' }) => { return (
{error}
{onRetry && ( )} {onGoBack && ( )}
) }