-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCourse.tsx
More file actions
29 lines (26 loc) · 805 Bytes
/
Course.tsx
File metadata and controls
29 lines (26 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { ChevronDown } from "lucide-react";
interface CourseProps {
courseCode: string;
title: string;
timeStart: string;
timeEnd: string;
instructor: string;
}
const Course = ({
courseCode,
title,
timeStart,
timeEnd,
instructor,
}: CourseProps) => {
return (
<div className="plasmo-flex plasmo-flex-row plasmo-items-center plasmo-justify-between plasmo-gap-2 plasmo-text-md plasmo-font-medium plasmo-rounded-md plasmo-p-2 plasmo-bg-gray-50">
<div className="plasmo-flex plasmo-flex-col">
<span className="plasmo-font-normal">{courseCode}</span>
<span className="plasmo-font-semibold">{title}</span>
</div>
<ChevronDown className="plasmo-w-5 plasmo-h-5 plasmo-text-gray-500 plasmo-cursor-pointer" />
</div>
);
};
export default Course;