// Admin Page — API Keys, LLM, RAG Config, Transcription Schedule
const AdminPage = ({ lang, activePage }) => {
const t = lang === 'zh';
const pages = {
'admin-api':
{t ? '後台管理' : 'Administration'}
{t ? '管理各 LLM 供應商的 API 金鑰,金鑰以加密方式儲存。' : 'Manage API keys for LLM providers. Keys are stored encrypted.'}
{t ? '新增 API 金鑰' : 'Add API Key'}
{t ? '設定 Answer 與 Rewrite 兩個 LLM,後台儲存於 llm_config 單列資料表。' : 'Configure the Answer and Rewrite LLMs (stored in the singleton llm_config row).'}
{loading ? ({title}
{hint}
{title}
{children}{hint}
{t ? '設定各節目的自動轉錄排程與進度監控。' : 'Configure auto-transcription schedules and monitor progress.'}