import { FunctionComponent } from 'react';
import ErrorState from '../common/ErrorState';

export interface AdminErrorStateProps {
  /** Already-translated message. */
  message: string;
  /** Already-translated retry label. */
  retryLabel: string;
  onRetry: () => void;
}

/**
 * Thin admin-scoped alias of the shared `ErrorState` — kept so existing backoffice call sites don't need
 * a mechanical import rename. New code (admin or otherwise) should import `ErrorState` from `@/components`.
 * @component AdminErrorState
 */
const AdminErrorState: FunctionComponent<AdminErrorStateProps> = (props) => <ErrorState {...props} />;

export default AdminErrorState;
