added udels editor and header

This commit is contained in:
Jade (Rose) Rowland 2024-06-14 01:24:08 -04:00
parent d23038d386
commit 6c9e0aaa1a
9 changed files with 190 additions and 7 deletions

View file

@ -39,6 +39,7 @@ import PlayCircleIcon from '@heroicons/react/20/solid/PlayCircleIcon';
import './Repl.css';
import { setInterval, clearInterval } from 'worker-timers';
import { getMetadata } from '../metadata_parser';
import UdelsEditor from '@components/Udels/UdelsEditor';
const { latestCode } = settingsMap.get();
@ -234,7 +235,14 @@ export function Repl({ embedded = false }) {
handleEvaluate,
};
const showPanel = !isEmbedded || isUdels();
if (isUdels()) {
return (
<UdelsEditor context={context} error={error} init={init} editorRef={editorRef} containerRef={containerRef} />
);
}
const showPanel = !isEmbedded;
return (
<ReplContext.Provider value={context}>
<div className={cx('h-full flex flex-col relative')}>