import 'package:fcs/domain/entities/invoice.dart';
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:flutter/material.dart';

Widget getInvoiceStatus(BuildContext context, Invoice invoice) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      LocalText(
        context,
        '',
        text: invoice.invoiceNumber ?? "",
        color: primaryColor,
        fontSize: 18,
        fontWeight: FontWeight.bold,
      ),
      Padding(
        padding: const EdgeInsets.only(left: 8.0),
        child: Chip(label: Text(invoice.status ?? "")),
      ),
    ],
  );
}
