15 lines
294 B
TypeScript
15 lines
294 B
TypeScript
'use client';
|
|
|
|
import { useAtom } from 'jotai';
|
|
import { currentUserAtom } from '@/features/user/atoms/current-user-atom';
|
|
|
|
export default function HomeB() {
|
|
const [currentUser] = useAtom(currentUserAtom);
|
|
|
|
return (
|
|
<>
|
|
Hello {currentUser && currentUser.user.name}!
|
|
</>
|
|
);
|
|
}
|