/* eslint-disable react-refresh/only-export-components */ import { type ComponentType, lazy, type LazyExoticComponent } from 'react'; type AppRouteComponent = LazyExoticComponent< ComponentType> >; export type AppRouteMatch = { kind: 'platform'; }; export type ResolvedAppRoute = { kind: AppRouteMatch['kind']; loadingEyebrow: string; loadingText: string; Component: AppRouteComponent; }; const PlatformApp = lazy( () => import('../AuthenticatedApp'), ) as AppRouteComponent; export function shouldUseRecommendationRouteLoading() { return false; } export function matchAppRoute(_pathname = ''): AppRouteMatch { return { kind: 'platform' }; } export function resolveAppRoute(_pathname = ''): ResolvedAppRoute { return { kind: 'platform', loadingEyebrow: '正在载入平台', loadingText: '正在加载内容', Component: PlatformApp, }; }