MCPcopy Create free account
hub / github.com/code100x/daily-code / MCQPanel

Function MCQPanel

apps/web/components/mcq/MCQPanel.tsx:9–33  ·  view source on GitHub ↗
({ problem }: { problem: Problem & { notionRecordMap: any } })

Source from the content-addressed store, hash-verified

7import SubmissionMCQ from "./SubmissionMCQ";
8
9const 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
35export default MCQPanel;
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected