import 'package:flutter/material.dart';

import '../../../../../components/page/page_title.dart';
import '../../../../../components/tab/custom_tabbar.dart';
import 'printer/setting_printer_bar.dart';
import 'printer/setting_printer_checker.dart';
import 'printer/setting_printer_kitchen.dart';
import 'printer/setting_printer_receipt.dart';
import 'printer/setting_printer_ticket.dart';

class SettingPrinterSection extends StatelessWidget {
  const SettingPrinterSection({super.key});

  @override
  Widget build(BuildContext context) {
    return const Column(
      children: [
        PageTitle(
          isBack: false,
          title: 'Printer',
          subtitle: 'Kelola printer untuk cetak struk',
        ),
        Expanded(
          child: CustomTabBar(
            tabTitles: [
              'Receipt Printer',
              'Checker Printer',
              'Kitchen Printer',
              'Bar Printer',
              'Tiket Printer',
            ],
            tabViews: [
              SettingPrinterReceipt(),
              SettingPrinterChecker(),
              SettingPrinterKitchen(),
              SettingPrinterBar(),
              SettingPrinterTicket(),
            ],
          ),
        ),
      ],
    );
  }
}
