import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App.tsx";
import { registerServiceWorker, setupNetworkStatusHandlers } from "./utils/serviceWorker";

// Register service worker for offline functionality
registerServiceWorker().catch(console.error);

// Setup network status handlers
setupNetworkStatusHandlers();

createRoot(document.getElementById("root")!).render(<App />);
