This commit is contained in:
Jon Eugster
2023-06-19 16:26:24 +02:00
parent e67db092d5
commit 2fed94a2bb
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -22,7 +22,8 @@ import { levelCompleted, selectCompleted } from '../../state/progress';
import { GameIdContext } from '../../App';
import { InputModeContext } from '../Level';
// TODO: This is only used in `EditorInterface`
// while `CommandLineInterface` has this copy-pasted in.
export function Main(props: {world: string, level: number}) {
const ec = React.useContext(EditorContext);
const gameId = React.useContext(GameIdContext)
@@ -116,7 +117,7 @@ export function EditorInterface({data, codeviewRef, hidden, worldId, levelId, ed
</div>
}
export function ReducedInterface(props: {world: string, level: number}) {
export function CommandLineInterface(props: {world: string, level: number}) {
const ec = React.useContext(EditorContext);
const gameId = React.useContext(GameIdContext)