"use client" import { Button } from "@/components/ui/button" import { Progress } from "@/components/ui/progress" import { ArrowLeft, Clock } from "lucide-react" import Link from "next/link" import type { ReactNode } from "react" interface TestLayoutProps { children: ReactNode title: string currentQuestion: number totalQuestions: number timeRemaining?: string onBack?: () => void } export function TestLayout({ children, title, currentQuestion, totalQuestions, timeRemaining, onBack, }: TestLayoutProps) { const progress = (currentQuestion / totalQuestions) * 100 return (
第 {currentQuestion} 題 / 共 {totalQuestions} 題