import 'package:flutter/material.dart';


class OperationHistoryError extends StatelessWidget {
  final String message;
  final String retryLabel;
  final VoidCallback onRetry;

  const OperationHistoryError({
    super.key,
    required this.message,
    required this.retryLabel,
    required this.onRetry,
  });

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(message),
          ElevatedButton(
            onPressed: onRetry,
            child: Text(retryLabel),
          ),
        ],
      ),
    );
  }
}
