2022-06-12 15:56:00 +00:00
|
|
|
import { ComponentType, lazy } from 'react';
|
2020-11-03 04:52:41 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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).
|
|
|
|
*/
|
2022-06-12 15:56:00 +00:00
|
|
|
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')),
|
|
|
|
};
|
2020-11-03 04:52:41 +00:00
|
|
|
|
2022-06-12 15:56:00 +00:00
|
|
|
export default features;
|