import { motion } from "framer-motion" interface UpdateModalProps { isOpen: boolean title: string message: string buttons: { text: string onClick: () => Promise | void variant?: "primary" | "error" | "outline" }[] onClose: () => void } export default function UpdateModal({ isOpen, title, message, buttons, onClose }: UpdateModalProps) { if (!isOpen) return null return (

{title}

{message}

{buttons.map((btn, idx) => ( {btn.text} ))}
) }