import 'package:flutter/material.dart';

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


class PaymentDetailsNotFound extends StatelessWidget {
  final VoidCallback onBack;

  const PaymentDetailsNotFound({
    super.key,
    required this.onBack,
  });

  @override
  Widget build(BuildContext context) {
    final loc = AppLocalizations.of(context)!;
    return Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Text(
            loc.paymentDetailsNotFound,
            style: Theme.of(context).textTheme.titleMedium,
          ),
          const SizedBox(height: 12),
          OutlinedButton.icon(
            onPressed: onBack,
            icon: const Icon(Icons.arrow_back),
            label: Text(loc.back),
          ),
        ],
      ),
    );
  }
}