import { Settings, ArrowUpCircle, Bug } from 'lucide-react'; import type { TFunction } from 'i18next'; import { IS_PLATFORM } from '../../../../constants/config'; import type { ReleaseInfo } from '../../../../types/sharedTypes'; const GITHUB_ISSUES_URL = 'https://github.com/siteboon/claudecodeui/issues/new'; const GITHUB_REPO_URL = 'https://github.com/siteboon/claudecodeui'; const DISCORD_INVITE_URL = 'https://discord.gg/buxwujPNRE'; function DiscordIcon({ className }: { className?: string }) { return ( ); } type SidebarFooterProps = { updateAvailable: boolean; releaseInfo: ReleaseInfo | null; latestVersion: string | null; currentVersion: string; onShowVersionModal: () => void; onShowSettings: () => void; t: TFunction; }; export default function SidebarFooter({ updateAvailable, releaseInfo, latestVersion, currentVersion, onShowVersionModal, onShowSettings, t, }: SidebarFooterProps) { return (
{/* Update banner */} {updateAvailable && ( <>
{/* Desktop update */}
{/* Mobile update */}
)} {/* Community + Settings */}
{/* Desktop Report Issue */}
{t('actions.reportIssue')}
{/* Desktop Discord */}
{t('actions.joinCommunity')}
{/* Desktop settings */}
{/* Desktop version brand line (OSS mode only) */} {!IS_PLATFORM && (
CloudCLI v{currentVersion} – {t('branding.openSource')}
)} {/* Mobile Report Issue */}
{t('actions.reportIssue')}
{/* Mobile Discord */}
{t('actions.joinCommunity')}
{/* Mobile settings */}
); }