@nteract/outputs
Version:
components for rendering outputs
23 lines (22 loc) • 905 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const ansi_to_react_1 = __importDefault(require("ansi-to-react"));
const React = __importStar(require("react"));
exports.Plain = (props) => (React.createElement("pre", null,
React.createElement(ansi_to_react_1.default, { linkify: true }, props.data)));
exports.Plain.defaultProps = {
data: "",
mediaType: "text/plain"
};
exports.Plain.displayName = "Plaintext";
exports.default = exports.Plain;