diff --git a/src/components/layout/header/internal/UserAuth.tsx b/src/components/layout/header/internal/UserAuth.tsx index 8464d43d3a..42e8d4343e 100644 --- a/src/components/layout/header/internal/UserAuth.tsx +++ b/src/components/layout/header/internal/UserAuth.tsx @@ -5,9 +5,11 @@ import { AnimatePresence } from 'framer-motion' import dynamic from 'next/dynamic' import { usePathname } from 'next/navigation' +import { useIsLogged } from '~/atoms' import { UserArrowLeftIcon } from '~/components/icons/user-arrow-left' import { FloatPopover } from '~/components/ui/float-popover' import { urlBuilder } from '~/lib/url-builder' +import { useAggregationSelector } from '~/providers/root/aggregation-data-provider' import { HeaderActionButton } from './HeaderActionButton' @@ -28,9 +30,24 @@ const SignInButton = dynamic(() => import('@clerk/nextjs').then((mod) => mod.SignInButton), ) +const OwnerAvatar = () => { + const ownerAvatar = useAggregationSelector((s) => s.user.avatar)! + + return ( +
+ site owner +
+ ) +} export function UserAuth() { const pathname = usePathname() + const isLogged = useIsLogged() + + if (isLogged) { + return + } + return (