mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
|
// mobx
|
||
|
import { observer } from "mobx-react-lite";
|
||
|
import { useMobxStore } from "lib/mobx/store-provider";
|
||
|
// components
|
||
|
import { SignInView, UserLoggedIn } from "components/accounts";
|
||
|
|
||
|
export const HomeView = observer(() => {
|
||
|
const { user: userStore } = useMobxStore();
|
||
|
|
||
|
if (!userStore.currentUser) return <SignInView />;
|
||
|
|
||
|
return <UserLoggedIn />;
|
||
|
});
|