import 'package:flutter/material.dart';

import 'package:pweb/pages/errors/error.dart';

import 'package:pweb/generated/i18n/app_localizations.dart';


class StatusPageFailure extends StatelessWidget {
  final String errorMessage;
  final Object error;
  final Widget? action;

  const StatusPageFailure({
    super.key,
    required this.errorMessage,
    required this.error,
    this.action,
  });

  @override
  Widget build(BuildContext context) => exceptionToErrorPage(
    context: context, 
    title: AppLocalizations.of(context)!.verificationFailed, 
    errorMessage: errorMessage, 
    exception: error,
  );
}
