SurfSense/surfsense_web/components/tool-ui/citation
Tim Ren 13f0d5c952 refactor(web): extract citation TYPE_ICONS into a shared module
`citation.tsx` and `citation-list.tsx` each defined the same
`TYPE_ICONS: Record<CitationType, LucideIcon>` map with byte-identical
contents. Extract it into `./type-icons.ts` and import from both call
sites so the mapping has a single source of truth.

While here, drop the Lucide icon imports (`Code2`, `Database`, `File`,
`FileText`, `Newspaper`) and the now-unused `LucideIcon` / `CitationType`
type imports from the two call sites, keeping only the icons still used
directly (`Globe` for the fallback, `ExternalLink` for the hover
affordance).

Fixes #1190.
2026-04-15 20:07:47 +08:00
..
_adapter.tsx chore: ran linting 2026-03-30 01:50:41 +05:30
citation-list.tsx refactor(web): extract citation TYPE_ICONS into a shared module 2026-04-15 20:07:47 +08:00
citation.tsx refactor(web): extract citation TYPE_ICONS into a shared module 2026-04-15 20:07:47 +08:00
index.ts chore: ran linting 2026-03-30 01:50:41 +05:30
schema.ts chore: ran linting 2026-03-30 01:50:41 +05:30
type-icons.ts refactor(web): extract citation TYPE_ICONS into a shared module 2026-04-15 20:07:47 +08:00