import Text from '@views/components/common/Text/Text'; import React from 'react'; /** * Props for ScheduleTotalHoursAndCourses */ export interface ScheduleTotalHoursAndCoursesProps { scheduleName: string; totalHours: number; totalCourses: number; } /** * The ScheduleTotalHoursAndCourses as per the Labels and Details Figma section * * @param props ScheduleTotalHoursAndCoursesProps */ export default function ScheduleTotalHoursAndCourses({ scheduleName, totalHours, totalCourses, }: ScheduleTotalHoursAndCoursesProps): JSX.Element { return (
{`${scheduleName}: `} {totalHours} {totalHours === 1 ? 'Hour' : 'Hours'} {totalCourses} {totalCourses === 1 ? 'Course' : 'Courses'}
); }