import {currentUser, requiredCurrentUser} from "@/auth/current-user"; import {Avatar, AvatarFallback, AvatarImage} from "@/components/ui/avatar"; export type UserAvatarProps = {} export const UserAvatar = async () => { const user = await currentUser() return (
{user.name?.[0]} {user.image ? ( ) : null}
) }