mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
15 lines
293 B
TypeScript
15 lines
293 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 (
|
|
<>
|
|
Hello {currentUser && currentUser.user.name}!
|
|
</>
|
|
);
|
|
}
|