UNPKG

thebe-react

Version:

React providers and components for thebe-core

10 lines 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutputAreaByRef = void 0; const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = tslib_1.__importDefault(require("react")); exports.OutputAreaByRef = react_1.default.forwardRef(({ busy, content }, ref) => { return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "m-1 hover:delay-15" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-1 rounded", ref: ref }, { children: content ? content : '[Output Area]' })), busy && (0, jsx_runtime_1.jsx)("div", { children: "Cell is running..." })] })) })); }); //# sourceMappingURL=OutputAreaByRef.js.map