Spaces:
Paused
Paused
File size: 615 Bytes
a0fda44 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import React from "react";
import { useState } from "react";
import Login from "../components/pages/Authentication/Login";
import Register from "../components/pages/Authentication/Register";
function Authentication() {
const [userWantToLogin, setUserWantsToLogin] = useState(true);
return (
<div className="chat-bg w-full h-full flex items-center justify-center px-[1rem]">
{userWantToLogin && <Login setUserWantsToLogin={setUserWantsToLogin} />}
{!userWantToLogin && (
<Register setUserWantsToLogin={setUserWantsToLogin} />
)}
</div>
);
}
export default Authentication;
|