import clsx from 'clsx'; import React from 'react'; import type { Course } from 'src/shared/types/Course'; import Text from '../Text/Text'; /** * Props for ConflictWithWarningProps */ export interface ConflictsWithWarningProps { className?: string; conflicts: Course[]; } /** * The ConflictsWithWarning component is used to display a warning message when a course conflicts * with another course as part of the labels and details section * * @param props ConflictsWithWarningProps */ export default function ConflictsWithWarning({ className, conflicts }: ConflictsWithWarningProps): JSX.Element { return (
Conflicts With:
{conflicts.map(course => (
{`${course.department} ${course.number} (${course.uniqueId})`}
))}
); }