freat: renaming
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user