import { useEffect, useRef } from "react"; export function DeviceDetailDialog({ open, onClose, snapshot }) { const ref = useRef(null); useEffect(() => { const node = ref.current; if (!node) return; if (open && typeof node.showModal === "function") { try { node.showModal(); } catch (_) { /* ignore */ } } else if (typeof node.close === "function") { try { node.close(); } catch (_) { /* ignore */ } } }, [open]); return (

Device Pod 详情

{snapshot ? JSON.stringify(snapshot, null, 2) : "无数据"}
); }