import { useState } from 'react'; import { ArrowLeft } from 'lucide-react'; import type { PBLProjectConfig } from '@/lib/pbl/types'; import { IssueboardPanel } from './issueboard-panel'; import { ChatPanel } from './chat-panel'; import { usePBLChat } from './use-pbl-chat'; import { PBLGuidePanel } from './guide'; import { useI18n } from '@/lib/hooks/use-i18n'; interface PBLWorkspaceProps { readonly projectConfig: PBLProjectConfig; readonly userRole: string; readonly onConfigUpdate: (config: PBLProjectConfig) => void; readonly onReset: () => void; } export function PBLWorkspace({ projectConfig, userRole, onConfigUpdate, onReset, }: PBLWorkspaceProps) { const { t } = useI18n(); const [showConfirm, setShowConfirm] = useState(false); const { messages, isLoading, sendMessage, currentIssue } = usePBLChat({ projectConfig, userRole, onConfigUpdate, }); return (