"use client"; import React from "react"; export interface ConfirmModalProps { open: boolean; title?: string; message: string; confirmText?: string; cancelText?: string; variant?: "primary" | "danger" | "success"; onConfirm: () => void; onCancel: () => void; } /** * POP 공용 확인 모달 (native confirm() 대체) * 모바일 친화 디자인, bottom-sheet 스타일 */ export function ConfirmModal({ open, title, message, confirmText = "확인", cancelText = "취소", variant = "primary", onConfirm, onCancel, }: ConfirmModalProps) { if (!open) return null; const confirmBg = variant === "danger" ? "bg-gradient-to-b from-red-500 to-red-600 hover:from-red-600 hover:to-red-700" : variant === "success" ? "bg-gradient-to-b from-emerald-500 to-emerald-600 hover:from-emerald-600 hover:to-emerald-700" : "bg-gradient-to-b from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700"; return (
{message}