import * as ScrollArea from '@radix-ui/react-scroll-area'
import { motion } from 'framer-motion'
import {
Activity,
BarChart3,
Bot,
Clock3,
FileText,
Layers3,
MessageSquareText,
Sparkles,
X,
} from 'lucide-react'
import Button from './Button'
export default function WorkspacePanel({
sidePanel,
selectedFile,
stats,
insights,
isAuthenticated,
runtimeStatus,
activeProvider,
activeModel,
onClose,
onPreviewAnalytics,
onAskAboutFile,
}) {
const isVisible = sidePanel && (sidePanel !== 'file' || selectedFile)
if (!isVisible) return null
return (
<>
{sidePanel === 'file'
? 'Review extracted file context beside the conversation.'
: 'Quick status for the current model, history, and workspace health.'}
{selectedFile.kind}
Extracted context
{sidePanel === 'file' ? 'File Preview' : 'Workspace Insights'}
{selectedFile.filename}
{selectedFile.extracted_text || 'No extracted text available.'}
{label}
{value}
{note}
{title}
{entries.length ? ({emptyLabel}
)}