Show Sign out when profile not loaded (fallback)

cgen-f447570e8935436384afb2df5a78b94b
This commit is contained in:
Builder.io 2025-09-28 23:52:32 +00:00
parent afea50d396
commit 4e5278e49e

View file

@ -119,6 +119,17 @@ export default function Layout({ children }: LayoutProps) {
<Button variant="ghost" size="sm" className="hover-lift">
<Bell className="h-4 w-4" />
</Button>
{!profile && (
<Button
variant="ghost"
size="sm"
className="hover-lift"
onClick={() => signOut()}
>
<LogOut className="h-4 w-4 mr-2" />
Sign out
</Button>
)}
{profile && (
<DropdownMenu>
<DropdownMenuTrigger asChild>