grub/client/lib/roomContext.ts
2023-08-10 23:09:24 -05:00

8 lines
181 B
TypeScript

import { createContext } from "react";
interface RoomContextProps {
roomId: string;
clientId: string;
}
export const RoomContext = createContext<RoomContextProps>(undefined);