import 'package:flutter/material.dart';

import 'package:pweb/utils/payment/status_view.dart';


class StepStateChip extends StatelessWidget {
  final StatusView view;

  const StepStateChip({super.key, required this.view});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
      decoration: BoxDecoration(
        color: view.backgroundColor,
        borderRadius: BorderRadius.circular(999),
      ),
      child: Text(
        view.label.toUpperCase(),
        style: Theme.of(context).textTheme.labelMedium?.copyWith(
          color: view.foregroundColor,
          fontWeight: FontWeight.w700,
          letterSpacing: 0.2,
        ),
      ),
    );
  }
}
