Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useMemo } from 'react';
import { Plus, Search, Calendar, DollarSign, Users, Filter, Download, CheckCircle, Clock, XCircle, AlertCircle, Sparkles, MessageSquare, X, Loader2 } from 'lucide-react';
import { GoogleGenerativeAI } from "@google/generative-ai";
const CleanServiceManager = () => {
// Dữ liệu mẫu
const [orders, setOrders] = useState([
{ id: 'DH001', date: '2026-01-03', customer: 'Nguyễn Thị Lan', phone: '0909123456', address: 'Căn 1205, Vinhomes Central Park', service: 'Tổng vệ sinh', price: 2500000, dateWork: '2026-01-05', staff: 'Tổ 1 (Hùng)', status: 'Mới' },
{ id: 'DH002', date: '2026-01-03', customer: 'Trần Văn Minh', phone: '0912345678', address: '12 Nguyễn Trãi, Q1', service: 'Giặt Sofa', price: 600000, dateWork: '2026-01-05', staff: 'Tổ 2 (Nam)', status: 'Đang làm' },
{ id: 'DH003', date: '2026-01-02', customer: 'Công ty ABC', phone: '0988777666', address: 'Tòa nhà Bitexco, Q1', service: 'Vệ sinh văn phòng', price: 5000000, dateWork: '2026-01-04', sta