misc_pterodactyl-panel/resources/scripts/components/server/features/index.ts

18 lines
759 B
TypeScript
Raw Normal View History

import { ComponentType, lazy } from 'react';
/**
* Custom features should be registered here as lazy components so that they do
* not impact the generated JS bundle size. They will be automatically loaded in
* whenever they are actually loaded for the client (which may be never, depending
* on the feature and the egg).
*/
const features: Record<string, ComponentType> = {
eula: lazy(() => import('@feature/eula/EulaModalFeature')),
java_version: lazy(() => import('@feature/JavaVersionModalFeature')),
gsl_token: lazy(() => import('@feature/GSLTokenModalFeature')),
pid_limit: lazy(() => import('@feature/PIDLimitModalFeature')),
steam_disk_space: lazy(() => import('@feature/SteamDiskSpaceFeature')),
};
export default features;