/** * 提示對話框組件 (單按鈕) */ 'use client' interface AlertDialogProps { isOpen: boolean title: string message: string confirmText?: string onConfirm: () => void type?: 'info' | 'warning' | 'error' | 'success' } export default function AlertDialog({ isOpen, title, message, confirmText = '確定', onConfirm, type = 'info', }: AlertDialogProps) { if (!isOpen) return null const getIcon = () => { switch (type) { case 'error': return (
{message}