import { SandboxMode , SandboxModule } from "./Generics" ; import { SandboxEditorModule } from "./SandboxEditor" ; import { SandboxZipModule } from "./SandboxZip" ; const SandboxModules = [ SandboxEditorModule , SandboxZipModule ] ; export function SandboxModuleFactory ( mode ) { return SandboxModules . find ( mod => mod . mode === mode ) ! ; }