schyma
Version:
JSON Schemas Visualizer React component
16 lines • 725 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_syntax_highlighter_1 = require("react-syntax-highlighter");
const prism_1 = require("react-syntax-highlighter/dist/cjs/styles/prism");
const CodeComponent = ({ children }) => {
return (react_1.default.createElement(react_syntax_highlighter_1.Prism, { language: 'json', style: prism_1.prism, customStyle: {
margin: 0,
borderRadius: 0,
background: '#ffffff',
fontSize: '12px',
}, showLineNumbers: true }, children));
};
exports.default = CodeComponent;
//# sourceMappingURL=Code.js.map