import 'package:flutter/material.dart';


class ErrorSnackBarContent extends StatelessWidget {
  final String situation;
  final String localizedError;

  const ErrorSnackBarContent({
    super.key,
    required this.situation,
    required this.localizedError,
  });

  @override
  Widget build(BuildContext context) => Column(
    mainAxisSize: MainAxisSize.min, // wrap to content
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      Text(
        situation,
        style: const TextStyle(fontWeight: FontWeight.bold),
      ),
      const SizedBox(height: 4),
      Text(localizedError),
    ],
  );
}
