This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ChevronLeft, Plus, Trash2, Edit2, Search, FileText, Truck, Package, Clock, CheckCircle, AlertCircle } from 'lucide-react'; | |
| // IndexedDB Setup | |
| const DB_NAME = 'WorkshopDB'; | |
| const DB_VERSION = 1; | |
| const initDB = () => { | |
| return new Promise((resolve, reject) => { | |
| const request = indexedDB.open(DB_NAME, DB_VERSION); | |
| request.onerror = () => reject(request.error); | |
| request.onsuccess = () => resolve(request.result); |