Files
TREK/client/src/components/shared/documentProviderIconMap.ts
T
Maurice c33eb5b593 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.
2026-10-25 11:24:36 +01:00

22 lines
577 B
TypeScript

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,
};