import React from 'react' const determineScore = (score?: number) => { if (typeof score === 'undefined') { return 'N' } if (score >= 95) { return 'A+' } if (score >= 90) { return 'A' } if (score >= 85) { return 'B+' } if (score >= 80) { return 'B' } if (score >= 75) { return 'C+' } if (score >= 70) { return 'C' } if (score >= 65) { return 'D+' } if (score >= 60) { return 'D' } return 'F' } export const Score = ({ score }: { score?: number }) => { return (
{determineScore(score)}
) }