First working version
This commit is contained in:
1 parent
b952ee5722
commit
c4d7ad5b5d
32 files changed
+3235
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import { useUsers } from "../hooks/useUsers";
|
||||
import { UserContext } from "./userContext";
|
||||
|
||||
|
||||
export const UserContextProvider = ({
|
||||
children,
|
||||
}: Readonly<{ children: React.ReactNode }>) => {
|
||||
const userProps = useUsers();
|
||||
|
||||
return (
|
||||
<UserContext.Provider value={userProps}>
|
||||
{children}
|
||||
</UserContext.Provider>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user