mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
c33eb5b593
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.
22 lines
577 B
TypeScript
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,
|
|
};
|