@datalayer/core
Version:
**Datalayer Core**
16 lines (15 loc) • 462 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* Copyright (c) 2023-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/
export const CodePreview = (props) => {
const { code } = props;
return (_jsx("pre", { style: {
fontSize: "12px",
wordBreak: "break-all",
wordWrap: "break-word",
whiteSpace: "pre-wrap",
}, children: code }));
};
export default CodePreview;