mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 14:32:36 +00:00
rebasing
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
6fa725a833
commit
39fc124f65
1 changed files with 0 additions and 32 deletions
|
|
@ -79,38 +79,6 @@ interface SidebarItem {
|
||||||
export function AppSidebar() {
|
export function AppSidebar() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
||||||
return (
|
|
||||||
<Sidebar>
|
|
||||||
<SidebarHeader>
|
|
||||||
<Link href="/">Llama Stack</Link>
|
|
||||||
</SidebarHeader>
|
|
||||||
<SidebarContent>
|
|
||||||
{/* Chat Playground as its own section */}
|
|
||||||
<SidebarGroup>
|
|
||||||
<SidebarGroupContent>
|
|
||||||
<SidebarMenu>
|
|
||||||
<SidebarMenuItem>
|
|
||||||
<SidebarMenuButton
|
|
||||||
asChild
|
|
||||||
className={cn(
|
|
||||||
"justify-start",
|
|
||||||
pathname.startsWith(chatPlaygroundItem.url) &&
|
|
||||||
"bg-gray-200 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100"
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Link href={chatPlaygroundItem.url}>
|
|
||||||
<chatPlaygroundItem.icon
|
|
||||||
className={cn(
|
|
||||||
pathname.startsWith(chatPlaygroundItem.url) &&
|
|
||||||
"text-gray-900 dark:text-gray-100",
|
|
||||||
"mr-2 h-4 w-4"
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
<span>{chatPlaygroundItem.title}</span>
|
|
||||||
</Link>
|
|
||||||
</SidebarMenuButton>
|
|
||||||
</SidebarMenuItem>
|
|
||||||
</SidebarMenu>
|
|
||||||
const renderSidebarItems = (items: SidebarItem[]) => {
|
const renderSidebarItems = (items: SidebarItem[]) => {
|
||||||
return items.map(item => {
|
return items.map(item => {
|
||||||
const isActive = pathname.startsWith(item.url);
|
const isActive = pathname.startsWith(item.url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue