refactor(files): the provider marks and the map that keys them live apart

The marks module exports components only, so fast refresh keeps it whole and react-refresh no longer counts it; the map by provider id moves to documentProviderIconMap.ts, which every caller now imports.
This commit is contained in:
Maurice
2026-10-25 11:24:36 +01:00
parent dcfbf89234
commit c33eb5b593
11 changed files with 36 additions and 24 deletions
@@ -0,0 +1,21 @@
import type React from 'react';
import {
type GlyphProps,
NextcloudIcon,
OpenCloudIcon,
PaperlessIcon,
PapraIcon,
SynologyDriveIcon,
} from './DocumentProviderIcons';
/**
* The document providers' marks keyed by the provider ids in `document_providers`.
* Kept apart from the drawings so that module exports components only.
*/
export const DOCUMENT_PROVIDER_ICONS: Record<string, React.ComponentType<GlyphProps>> = {
paperless: PaperlessIcon,
papra: PapraIcon,
nextcloud: NextcloudIcon,
opencloud: OpenCloudIcon,
synologydrive: SynologyDriveIcon,
};