import 'package:flutter/material.dart';
import '../../../core/config/app_constants.dart';

/// Rangée de cœurs représentant les vies restantes.
class LivesRow extends StatelessWidget {
  final int lives;
  const LivesRow({super.key, required this.lives});

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: List.generate(AppConstants.startingLives, (index) {
        return Icon(
          index < lives ? Icons.favorite : Icons.favorite_border,
          color: Colors.red,
          size: 32,
        );
      }),
    );
  }
}
