import React, { useState } from "react"; import { ArrowLeftIcon, Cross1Icon } from "@radix-ui/react-icons"; import Modal from "../Modal"; import styled from "styled-components"; import DynamicCanvaModal from "./NewLectureModal/DynamicCanva"; import VideoModal from "./NewLectureModal/Video"; function NewLectureModal({ closeModal, submitLecture, submitFileLecture, chapterId }: any) { const [selectedView, setSelectedView] = useState("home"); return (

Add New Lecture


{selectedView === "home" && ( {setSelectedView("dynamic")}}>✨📄 {setSelectedView("video")}}>📹 )} {selectedView === "dynamic" && ( )} {selectedView === "video" && ( )}
); } const LectureChooserWrapper = styled.div` display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; `; const LectureButton = styled.button` padding: 20px; border-radius: 10px; border: none; font-size: 50px; background-color: #8c949c33; cursor: pointer; &:hover { background-color: #8c949c7b; } `; export default NewLectureModal;