import { Button } from "@pram/ui/components/button"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, } from "@pram/ui/components/dialog"; import { MaterialIcon } from "@/components/ui/MaterialIcon"; interface FinishDialogProps { open: boolean; onClose: () => void; onConfirm: () => void; answeredCount: number; totalQuestions: number; } export function FinishDialog({ open, onClose, onConfirm, answeredCount, totalQuestions }: FinishDialogProps) { return ( !v && onClose()}>
Selesaikan Latihan?
} >

Kamu sudah menjawab {answeredCount} dari {totalQuestions} soal.

{answeredCount < totalQuestions && (
Masih ada {totalQuestions - answeredCount} soal yang belum dijawab.
)}

Setelah selesai, jawaban tidak bisa diubah dan hasil akan langsung terlihat.

); }