"use client"; import React, { useState } from 'react'; import { MessageCircle, Send, X, Minimize2, Maximize2 } from 'lucide-react'; import { cn } from "@/lib/utils"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { ScrollArea } from "@/components/ui/scroll-area"; const Footer = ({ className=undefined, shortcuts }) => { const [isChatOpen, setIsChatOpen] = useState(false); const [isChatMinimized, setIsChatMinimized] = useState(false); // Expecting shortcuts as an array of two arrays: [ [row1], [row2] ] const shortcutGroups = shortcuts || [[], []]; return (
{/* XTreeGold-style two-row footer */}
{/* First row - F1-F10 keys */}
{shortcutGroups[0].map((shortcut, index) => (
{shortcut.key} {shortcut.label}
))}
{/* Second row - Other keys */}
{shortcutGroups[1].map((shortcut, index) => (
{shortcut.key} {shortcut.label}
))}
{/* Right side - Status/AI Assistant */}
Ready
{/* Chat Window (optional) */} {isChatOpen && !isChatMinimized && (
General Bots Assistant
General Bots Assistant is ready to help with file operations.
)}
); }; export default Footer;