import 'package:flutter/material.dart';
import 'package:superport/screens/common/theme_shadcn.dart';

// 장비 요약 정보 행 위젯 (SRP, 재사용성)
class EquipmentSummaryRow extends StatelessWidget {
  final String label;
  final String value;

  const EquipmentSummaryRow({
    super.key,
    required this.label,
    required this.value,
  });

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.symmetric(vertical: 6.0),
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          SizedBox(
            width: 110,
            child: Text(
              '$label:',
              style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
            ),
          ),
          Expanded(
            child: Text(
              value,
              style: TextStyle(
                fontSize: 15,
                color: value == '정보 없음'
                    ? ShadcnTheme.mutedForeground
                    : ShadcnTheme.foreground,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
