mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-22 21:28:12 +02:00
`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. |
||
|---|---|---|
| .. | ||
| _adapter.tsx | ||
| citation-list.tsx | ||
| citation.tsx | ||
| index.ts | ||
| schema.ts | ||
| type-icons.ts | ||