'use client'; import { calculateOEPSResults } from '../../test/private/OEPSCalculator'; interface OEPSResultProps { answers: string[]; } function barWidth(value: number) { return `${Math.max(0, Math.min(100, (value / 5) * 100))}%`; } export function OEPSResult({ answers }: OEPSResultProps) { const result = calculateOEPSResults(answers); return (
你的最高候选类型是:
{result.top.description}
平均分:{result.top.average.toFixed(2)} / 5