import * as React from 'react'; import { Button, Card, CardBody, CardTitle, Col, Row } from 'reactstrap'; import CourseSection from '../util/CourseSection'; interface CourseSectionCardProps { courseSectionAction: (courseSection: CourseSection) => void; courseSection: CourseSection; courseSectionActionButtonText: string; destructive?: boolean; } require('../css/button-text-override.css'); /** * Renders information about a single course section, and includes a * button for adding/removing it from the current schedule. */ const CourseSectionCard = ({ courseSection, courseSectionAction, courseSectionActionButtonText, destructive, }: CourseSectionCardProps) => ( {courseSection.crn}

{courseSection.title}

{courseSection.name}

{courseSection.instructor}
{courseSection.days}, {courseSection.startTime} -{' '} {courseSection.endTime}
{courseSection.location}
); export default CourseSectionCard;