(category: string)
| 24 | |
| 25 | // 类别显示名称 |
| 26 | function getCategoryLabel(category: string): string { |
| 27 | const labels: Record<string, string> = { |
| 28 | 'search_comments': 'Comments', |
| 29 | 'search_creators': 'Creators', |
| 30 | 'search_videos': 'Videos', |
| 31 | 'search_contents': 'Contents', |
| 32 | 'search_notes': 'Notes', |
| 33 | 'other': 'Other', |
| 34 | } |
| 35 | return labels[category] || category.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase()) |
| 36 | } |
| 37 | |
| 38 | export function DataExplorer() { |
| 39 | const { t } = useTranslation('data') |