import React, { ReactNode } from 'react'; import { Role } from './useClassroom.ts'; import { useClassroomContext } from './ClassroomProvider.tsx'; import { VideoCameraIcon, CameraIcon, MicrophoneIcon, ShareIcon, ClipboardDocumentIcon, PaperAirplaneIcon } from '@heroicons/react/24/outline'; interface ClassroomLayoutProps { children: ReactNode; role: Role; } export const ClassroomLayout = ({ children, role }: ClassroomLayoutProps) => { const [showVideo, setShowVideo] = React.useState(role !== Role.Teacher); const [showShareLink, setShowShareLink] = React.useState(false); const { remoteVideoContainer, isCameraOn, isAudioOn, isScreenSharing, toggleCamera, toggleAudio, toggleScreenShare, messageList, msgText, setMsgText, sendMessage, handUpList, questions, classStatus, shareLink } = useClassroomContext(); return (