// Fitur utama aplikasi kasir
// - Input transaksi
// - Cetak struk ke printer thermal
// - Integrasi FireFly III

import 'package:flutter/material.dart';
import 'package:cashumit/models/item.dart';
import 'package:cashumit/features/transaction_screen.dart';

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

  @override
  Widget build(BuildContext context) {
    // Data contoh barang
    final items = [
      Item(id: '001', name: 'Beras 1kg', price: 12000, category: 'Sembako'),
      Item(id: '002', name: 'Minyak Goreng 1L', price: 15000, category: 'Sembako'),
      Item(id: '003', name: 'Gula Pasir 1kg', price: 13000, category: 'Sembako'),
      Item(id: '004', name: 'Telur Ayam 1kg', price: 25000, category: 'Sembako'),
      Item(id: '005', name: 'Tepung Terigu 1kg', price: 9000, category: 'Sembako'),
      Item(id: '006', name: 'Susu Kental Manis', price: 10000, category: 'Minuman'),
      Item(id: '007', name: 'Kopi Sachet', price: 1500, category: 'Minuman'),
      Item(id: '008', name: 'Teh Celup 25 sachet', price: 8000, category: 'Minuman'),
      Item(id: '009', name: 'Sabun Mandi Lux', price: 4000, category: 'Toiletries'),
      Item(id: '010', name: 'Pasta Gigi Pepsodent', price: 12000, category: 'Toiletries'),
    ];

    return TransactionScreen(
      items: items,
    );
  }
}