29 lines
740 B
JavaScript
29 lines
740 B
JavaScript
|
|
export const AI_STATUS_META = {
|
|||
|
|
running: {
|
|||
|
|
label: 'AI 分类中',
|
|||
|
|
icon: 'ph-circle-notch',
|
|||
|
|
className: 'bg-amber-50 text-amber-700 border-amber-200',
|
|||
|
|
iconClassName: 'animate-spin',
|
|||
|
|
},
|
|||
|
|
applied: {
|
|||
|
|
label: 'AI 已补全',
|
|||
|
|
icon: 'ph-sparkle',
|
|||
|
|
className: 'bg-violet-50 text-violet-700 border-violet-200',
|
|||
|
|
iconClassName: '',
|
|||
|
|
},
|
|||
|
|
suggested: {
|
|||
|
|
label: 'AI 建议',
|
|||
|
|
icon: 'ph-lightbulb',
|
|||
|
|
className: 'bg-sky-50 text-sky-700 border-sky-200',
|
|||
|
|
iconClassName: '',
|
|||
|
|
},
|
|||
|
|
failed: {
|
|||
|
|
label: 'AI 失败',
|
|||
|
|
icon: 'ph-warning',
|
|||
|
|
className: 'bg-stone-100 text-stone-500 border-stone-200',
|
|||
|
|
iconClassName: '',
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
export const getAiStatusMeta = (status) => AI_STATUS_META[status] || null
|