// Admin Page — API Keys, LLM, RAG Config, Transcription Schedule
const AdminPage = ({ lang, activePage, currentUser }) => {
const t = lang === 'zh';
const pages = {
'admin-api':
{t ? '後台管理' : 'Administration'}
{t ? '管理各 LLM 供應商的 API 金鑰。AI 處理步驟設定頁會引用這裡的金鑰。' : 'Manage API keys per provider. Referenced by AI step config.'}
{t ? '新增 API 金鑰' : 'Add API Key'}
{t ? '編輯金鑰' : 'Edit API Key'} · {editing.provider}
{t ? '為每個 AI 處理步驟挑選 base_url、model 與 API 金鑰。金鑰請先到「API 金鑰管理」新增。' : 'Configure base_url, model, and api_key for each AI processing step. Add keys via "API Keys" tab first.'}
{STEP_LABELS[step.step_key][t ? 'zh' : 'en']}
{step.step_key} · {step.step_type}{hint}
{title}
{children}{hint}
{t ? '設定各節目的自動轉錄排程與進度監控。' : 'Configure auto-transcription schedules and monitor progress.'}
{t ? '待 cron 功能上線後生效。' : 'Takes effect once cron support ships.'}