'use client'; import { Plus } from 'lucide-react'; import Link from 'next/link'; import { type User } from 'next-auth'; import { VercelIcon } from '@/components/custom/icons'; import { SidebarHistory } from '@/components/custom/sidebar-history'; import { SidebarUserNav } from '@/components/custom/sidebar-user-nav'; import { Button } from '@/components/ui/button'; import { Card, CardDescription, CardFooter, CardHeader, CardTitle, } from '@/components/ui/card'; import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarHeader, SidebarMenu, SidebarMenuAction, SidebarMenuButton, SidebarMenuItem, useSidebar, } from '@/components/ui/sidebar'; import { BetterTooltip } from '@/components/ui/tooltip'; export function AppSidebar({ user }: { user: User | undefined }) { const { setOpenMobile } = useSidebar(); return ( setOpenMobile(false)}> Chatbot setOpenMobile(false)}> Deploy Deploy your own Open Source Chatbot template built with Next.js and the AI SDK by Vercel. {user && ( )} ); }