import 'package:flutter/material.dart';

class TextSeparator extends StatelessWidget {
  final String text;
  const TextSeparator({super.key, required this.text});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.fromLTRB(20, 16, 20, 4),
      child: Row(
        children: [
          Text(
            text.toUpperCase(),
            style: const TextStyle(
              color: Color(0xFF4A6F8A),
              fontSize: 10,
              fontWeight: FontWeight.w600,
              letterSpacing: 1.2,
            ),
          ),
          const SizedBox(width: 8),
          const Expanded(
            child: Divider(color: Color(0xFF1E3A52), thickness: 1, height: 1),
          ),
        ],
      ),
    );
  }
}
