import type { PBLAgent, PBLProjectInfo } from '@/lib/pbl/types'; import { useI18n } from '@/lib/hooks/use-i18n'; import { PBLGuideInline } from './guide'; interface PBLRoleSelectionProps { readonly projectInfo: PBLProjectInfo; readonly agents: PBLAgent[]; readonly onSelectRole: (agentName: string) => void; } export function PBLRoleSelection({ projectInfo, agents, onSelectRole }: PBLRoleSelectionProps) { const { t } = useI18n(); // Only show non-system development roles const selectableAgents = agents.filter( (a) => !a.is_system_agent && a.role_division === 'development', ); return (
{/* Project Info */}

{projectInfo.title}

{projectInfo.description}

{/* Role Selection */}

{t('pbl.roleSelection.title')}

{t('pbl.roleSelection.description')}

{selectableAgents.map((agent) => ( ))}
{/* How it works guide */}
); }