import { useState } from "react"; import { Button } from "@/shared/components/ds/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/shared/components/ui/dialog"; import { Mapset } from "@/shared/types/mapset"; type VerificationAction = "approve" | "reject"; interface VerifyMapsetDialogProps { mapset: Mapset; isLoading: boolean; onAction: (action: VerificationAction, note: string) => void; onCancel: () => void; open: boolean; } export const VerifyMapsetDialog = ({ mapset, isLoading, onAction, onCancel, open, }: VerifyMapsetDialogProps) => { const [note, setNote] = useState(""); const handleNoteChange = (e: React.ChangeEvent) => { setNote(e.target.value); }; return ( !isOpen && onCancel()}> Verifikasi Mapset Verifikasi mapset "{mapset.name}". Pilih untuk menyetujui atau menolak mapset ini.