feat: implement sharing page

This commit is contained in:
shadcn 2023-06-16 17:06:23 +04:00
parent 137bdadaf9
commit 6962beb8e2
12 changed files with 113 additions and 69 deletions

View file

@ -27,7 +27,7 @@ export function SidebarItem({ chat, children }: SidebarItemProps) {
return (
<>
<Link
href={chat.path || `/chat/${chat.id}`}
href={chat.path}
className={cn(
buttonVariants({ variant: 'ghost' }),
'group w-full px-2',
@ -50,7 +50,7 @@ export function SidebarItem({ chat, children }: SidebarItemProps) {
>
<span className="whitespace-nowrap">{chat.title}</span>
</div>
{children}
{isActive && children}
</Link>
</>
)