first lol

This commit is contained in:
legop3
2025-11-15 04:05:01 -05:00
parent 4d3bc09e2b
commit d64cfe2d46
42 changed files with 5011 additions and 880 deletions
+9
View File
@@ -0,0 +1,9 @@
// src/context/SocketContext.jsx
import { createContext, useContext } from "react";
import { socket } from "../lib/socket";
const SocketContext = createContext(socket);
export const SocketProvider = ({ children }) => (
<SocketContext.Provider value={socket}>{children}</SocketContext.Provider>
);
export const useSocket = () => useContext(SocketContext);