forked from github/plane
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 />;
|
||
|
});
|