"use client" import * as React from "react" import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog" interface SendResultsDialogProps { isOpen: boolean onClose: () => void onConfirm: () => Promise selectedCount: number } export function SendResultsDialog({ isOpen, onClose, onConfirm, selectedCount, }: SendResultsDialogProps) { const [isPending, setIsPending] = React.useState(false) async function handleConfirm() { setIsPending(true) try { await onConfirm() } finally { setIsPending(false) } } return ( !open && onClose()}> 실사 결과 발송 선택한 {selectedCount}개 협력업체의 실사 결과를 발송하시겠습니까? 완료된 실사만 결과를 발송할 수 있습니다. ) }