"use client"; import Link from "next/link"; import { useEffect, useRef } from "react"; interface ScoreSummaryProps { correctCount: number; totalCount: number; onRestart: () => void; } export default function ScoreSummary({ correctCount, totalCount, onRestart, }: ScoreSummaryProps) { const restartButtonRef = useRef(null); useEffect(() => { restartButtonRef.current?.focus(); }, []); return (

괄호 음수 분배

풀이 결과

{correctCount} / {totalCount} 정답

처음으로
); }