import { cn } from '@/lib/utils' import { Check, FileText, Globe, BookOpen } from 'lucide-react' import { useTranslation } from 'react-i18next' import type { LayoutModel } from '@/types/apiV2' interface LayoutModelSelectorProps { value: LayoutModel onChange: (model: LayoutModel) => void disabled?: boolean className?: string } const MODEL_ICONS: Record = { chinese: , default: , cdla: , } export default function LayoutModelSelector({ value, onChange, disabled = false, className, }: LayoutModelSelectorProps) { const { t } = useTranslation() const models: LayoutModel[] = ['chinese', 'default', 'cdla'] const getModelInfo = (model: LayoutModel) => ({ label: t(`processing.layoutModel.${model}`), description: t(`processing.layoutModel.${model}Desc`), }) return (
{/* Header */}

{t('processing.layoutModel.title')}

{/* Model Options */}
{models.map((model) => { const info = getModelInfo(model) const isSelected = value === model return ( ) })}
{/* Info Note */}

{t('processing.layoutModel.note')}

) }