'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.name}

{result.top.description}

平均分:{result.top.average.toFixed(2)} / 5

九型分数排序

{result.ranked.map((item) => (
{item.name}
{item.description}
{item.average.toFixed(2)}
))}
OEPS 和九型人格适合作为自我探索材料。若前几名分数接近,建议把它们都作为候选类型继续阅读和核对,不要只看最高分。
); }