import { Suspense } from 'react' import { cn } from '@/lib/utils' import { buttonVariants } from '@/components/ui/button' import { Sidebar } from '@/components/sidebar' import { SidebarList } from '@/components/sidebar-list' import { IconGitHub, IconSeparator, IconVercel } from '@/components/ui/icons' import { UserButton, currentUser } from '@clerk/nextjs' import { SidebarFooter } from '@/components/sidebar-footer' import { ThemeToggle } from '@/components/theme-toggle' import { ClearHistory } from '@/components/clear-history' import { clearChats } from '@/app/actions' export async function Header() { const user = await currentUser() return (
{/* @ts-ignore */} }> {/* @ts-ignore */}
*]:dark:text-zinc-600', userPreview: 'p-4 border-b border-border m-0', userButtonPopoverActionButton: 'px-1 gap-1', userButtonPopoverActionButtonText: 'text-sm tracking-normal dark:text-zinc-400', userButtonPopoverActionButtonIcon: 'h-4 w-4 text-muted-foreground' } }} />
GitHub Deploy to Vercel Deploy
) }