orgo-vnc
Version:
Embed cloud desktops in your React app
32 lines (31 loc) • 743 B
JavaScript
import "./chunk-3QS3WKRC.mjs";
// src/ComputerDisplay.tsx
import { useState, useEffect } from "react";
import { jsx } from "react/jsx-runtime";
function ComputerDisplay(props) {
const [Client, setClient] = useState(null);
useEffect(() => {
import("./VNCClient.mjs").then((mod) => {
setClient(() => mod.VNCClient);
});
}, []);
if (!Client) {
return /* @__PURE__ */ jsx(
"div",
{
className: props.className,
style: {
width: "100%",
height: "100%",
background: props.background || "#000",
...props.style
}
}
);
}
return /* @__PURE__ */ jsx(Client, { ...props });
}
export {
ComputerDisplay
};
//# sourceMappingURL=index.mjs.map