import type { Priority } from '../types/todo'; export const priorityLabels: { [key in Priority]: string } = { low: '低', medium: 'δΈ­', high: '高', }; export const getPriorityTagColor = (priority: Priority): string => { switch (priority) { case 'low': return 'green'; case 'medium': return 'orange'; case 'high': return 'red'; default: return 'default'; } }; export const getPriorityIcon = (priority: Priority): string => { switch (priority) { case 'low': return '🌱'; case 'medium': return '🌟'; case 'high': return 'πŸ”₯'; default: return ''; } };