diff --git a/src/pages/editor-page/editor-sidebar/editor-sidebar.tsx b/src/pages/editor-page/editor-sidebar/editor-sidebar.tsx index 42b380af..d7ec62c0 100644 --- a/src/pages/editor-page/editor-sidebar/editor-sidebar.tsx +++ b/src/pages/editor-page/editor-sidebar/editor-sidebar.tsx @@ -2,6 +2,7 @@ import React, { useMemo } from 'react'; import { Sidebar, SidebarContent, + SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, @@ -9,15 +10,18 @@ import { SidebarMenuButton, SidebarMenuItem, } from '@/components/sidebar/sidebar'; +import { Twitter, BookOpen } from 'lucide-react'; import { SquareStack, Table, Workflow } from 'lucide-react'; import { useLayout } from '@/hooks/use-layout'; import { useTranslation } from 'react-i18next'; +import { DiscordLogoIcon } from '@radix-ui/react-icons'; export interface SidebarItem { title: string; icon: React.FC; onClick: () => void; active: boolean; + badge?: string; } export interface EditorSidebarProps {} @@ -58,6 +62,33 @@ export const EditorSidebar: React.FC = () => { ], [selectSidebarSection, selectedSidebarSection, t, showSidePanel] ); + + const footerItems: SidebarItem[] = useMemo( + () => [ + { + title: 'Discord', + icon: DiscordLogoIcon, + onClick: () => + window.open('https://discord.gg/QeFwyWSKwC', '_blank'), + active: false, + }, + { + title: 'Twitter', + icon: Twitter, + onClick: () => + window.open('https://x.com/jonathanfishner', '_blank'), + active: false, + }, + { + title: 'Documentation', + icon: BookOpen, + onClick: () => window.open('https://docs.chartdb.io', '_blank'), + active: false, + }, + ], + [] + ); + return ( = () => { + + + + {footerItems.map((item) => ( + + {item.badge && ( + + {item.badge} + + )} + + + + + ))} + + ); };