import { Button } from "antd";
import AuthModal, { authModalAtom, authStateAtom } from "@/components/auth-modal";
import { useAtomValue, useSetAtom } from "jotai";
import { UserOutlined } from "@ant-design/icons";
const Header = () => {
const authState = useAtomValue(authStateAtom);
const setModalOpen = useSetAtom(authModalAtom);
const isSignedIn = authState === "SIGNED_IN";
return (
<>
{isSignedIn ? (
) : (
)}
>
);
};
export default Header;