Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
892 B

import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from '../Resizable';
import { SqlCodeEditor } from '../SqlCodeEditor/SqlCodeEditor';
import type { ReactNode } from 'react';
import type { LessonFileType } from '../../lib/course';
import { LessonView } from './LessonView';
import { QuizView } from './QuizView';
type LessonQuizViewProps = {
lesson: LessonFileType;
children: ReactNode;
};
export function LessonQuizView(props: LessonQuizViewProps) {
const { children, lesson } = props;
return (
<ResizablePanelGroup direction="horizontal">
<ResizablePanel defaultSize={50} minSize={20}>
<LessonView>{children}</LessonView>
</ResizablePanel>
<ResizableHandle withHandle={true} />
<ResizablePanel defaultSize={50} minSize={20}>
<QuizView lesson={lesson} />
</ResizablePanel>
</ResizablePanelGroup>
);
}