"use client"; import { useRef } from "react"; import { motion, AnimatePresence } from "framer-motion"; import { LogOut } from "lucide-react"; interface LeaveConfirmModalProps { open: boolean; onConfirm: () => void; onCancel: () => void; } export default function LeaveConfirmModal({ open, onConfirm, onCancel, }: LeaveConfirmModalProps) { const backdropRef = useRef(null); const handleBackdropClick = (e: React.MouseEvent) => { if (e.target === backdropRef.current) onCancel(); }; return ( {open && (

确定要退出房间吗?

退出后你的滑卡进度不会丢失,可以用房间号重新加入

)}
); }