Genesis
This commit is contained in:
6
src/contexts/GoogleAuthContext.js
Normal file
6
src/contexts/GoogleAuthContext.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import React, { createContext } from 'react';
|
||||
|
||||
// Create a new context for Google Auth
|
||||
const GoogleAuthContext = createContext(null);
|
||||
|
||||
export default GoogleAuthContext;
|
||||
7
src/contexts/SocketContext.js
Normal file
7
src/contexts/SocketContext.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
// Create a new context for Socket.IO
|
||||
const SocketContext = React.createContext(null);
|
||||
|
||||
export const SocketConsumer = SocketContext.Consumer;
|
||||
export default SocketContext;
|
||||
Reference in New Issue
Block a user