"use client"; import Link from "next/link"; import { useEffect, useRef } from "react"; export type PreparationProblemCount = 5 | 10; interface ParenthesesPreparationClientProps { eyebrow: string; title: string; description: string; notice: string; playHref: string; selectedProblemCount: PreparationProblemCount; onProblemCountChange: (count: PreparationProblemCount) => void; onStart: () => void; } const problemCounts: PreparationProblemCount[] = [5, 10]; const bracketKinds = [ { label: "( )", name: "소괄호", selected: true, disabled: false, }, { label: "{ }", name: "중괄호", selected: false, disabled: true, }, { label: "[ ]", name: "대괄호", selected: false, disabled: true, }, ]; export default function ParenthesesPreparationClient({ eyebrow, title, description, notice, playHref, selectedProblemCount, onProblemCountChange, onStart, }: ParenthesesPreparationClientProps) { const startLinkRef = useRef(null); useEffect(() => { startLinkRef.current?.focus(); }, []); return (

{eyebrow}

{title}

{description}

문제 수
{problemCounts.map((count) => { const selected = selectedProblemCount === count; return ( ); })}
괄호 종류
{bracketKinds.map((bracketKind) => ( ))}
연습 시작 뒤로가기

{notice}

); }