({ problem }: { problem: Problem & { notionRecordMap: any } })
| 7 | import SubmissionMCQ from "./SubmissionMCQ"; |
| 8 | |
| 9 | const MCQPanel = ({ problem }: { problem: Problem & { notionRecordMap: any } }) => { |
| 10 | const [activeTab, setActiveTab] = useState("description"); |
| 11 | return ( |
| 12 | <div className="h-[calc(100vh-72px)] overflow-y-scroll"> |
| 13 | <Tabs value={activeTab} onValueChange={(value) => setActiveTab(value)} className="p-4"> |
| 14 | <TabsList className=""> |
| 15 | <TabsTrigger value="description" className="w-full px-4"> |
| 16 | <NotepadText className="mr-2 text-[#195698]" size={16} /> |
| 17 | Description |
| 18 | </TabsTrigger> |
| 19 | <TabsTrigger value="submissions" className="w-full px-4"> |
| 20 | <History className="mr-2 text-[#195698]" size={16} /> |
| 21 | Submissions |
| 22 | </TabsTrigger> |
| 23 | </TabsList> |
| 24 | <TabsContent value="description" className=""> |
| 25 | <NotionRenderer recordMap={problem.notionRecordMap} /> |
| 26 | </TabsContent> |
| 27 | <TabsContent value="submissions" className=""> |
| 28 | <SubmissionMCQ problem={problem} /> |
| 29 | </TabsContent> |
| 30 | </Tabs> |
| 31 | </div> |
| 32 | ); |
| 33 | }; |
| 34 | |
| 35 | export default MCQPanel; |
| 36 |
nothing calls this directly
no outgoing calls
no test coverage detected