mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-14 00:31:12 +10:00
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
"use client";
|
|
|
|
import { useAtom } from "jotai";
|
|
import { currentUserAtom } from "@/features/user/atoms/current-user-atom";
|
|
|
|
export default function Home() {
|
|
const [currentUser] = useAtom(currentUserAtom);
|
|
|
|
return (
|
|
<div className="w-full flex justify-center z-10 flex-shrink-0">
|
|
<div className={`w-[900px]`}>
|
|
Hello {currentUser && currentUser.user.name}!
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|