Refactor: Extract project color mappings to composable

Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-23 23:30:13 +00:00
parent 66fe877499
commit a1dbcdce90
3 changed files with 23 additions and 26 deletions

View File

@@ -0,0 +1,21 @@
export function useProjectColors() {
const statusColors: Record<string, string> = {
'active': 'green',
'completed': 'blue',
'archived': 'gray',
'in-progress': 'amber'
}
const typeColors: Record<string, string> = {
'Personal Project': 'purple',
'Academic Project': 'sky',
'Infrastructure Project': 'emerald',
'Internship Project': 'orange',
'Research Project': 'blue'
}
return {
statusColors,
typeColors
}
}