freat: renaming

This commit is contained in:
2026-03-15 14:11:11 +01:00
parent 2326bbe035
commit 04c039bdde
18 changed files with 455 additions and 462 deletions

View File

@@ -1,6 +1,6 @@
/**
* Map project icon ids to Lucide icons for the sidebar.
* Only Lucide "Animals" category icons are allowed for projects.
* Map recollection icon ids to Lucide icons for the sidebar.
* Only Lucide "Animals" category icons are allowed for recollections.
*/
import {
@@ -18,9 +18,9 @@ import {
Turtle,
type LucideIcon,
} from 'lucide-react'
import type { ProjectIconId } from '@/app/kosmos/types'
import type { RecollectionIconId } from '@/app/kosmos/types'
export const PROJECT_ICON_MAP: Record<ProjectIconId, LucideIcon> = {
export const RECOLLECTION_ICON_MAP: Record<RecollectionIconId, LucideIcon> = {
bird: Bird,
bug: Bug,
cat: Cat,
@@ -35,6 +35,6 @@ export const PROJECT_ICON_MAP: Record<ProjectIconId, LucideIcon> = {
egg: Egg
}
export function getProjectIcon(iconId: string): LucideIcon {
return PROJECT_ICON_MAP[iconId as ProjectIconId] ?? Cat
export function getRecollectionIcon(iconId: string): LucideIcon {
return RECOLLECTION_ICON_MAP[iconId as RecollectionIconId] ?? Cat
}