Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
541 B
Plaintext
22 lines
541 B
Plaintext
'use client';
|
|
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
import './index.scss';
|
|
export const CodeCell = ({
|
|
cellData,
|
|
nowrap
|
|
}) => {
|
|
const textToShow = cellData?.length > 100 ? `${cellData.substring(0, 100)}\u2026` : cellData;
|
|
const noWrapStyle = nowrap ? {
|
|
whiteSpace: 'nowrap'
|
|
} : {};
|
|
return /*#__PURE__*/_jsx("code", {
|
|
className: "code-cell",
|
|
style: noWrapStyle,
|
|
children: /*#__PURE__*/_jsx("span", {
|
|
children: textToShow
|
|
})
|
|
});
|
|
};
|
|
//# sourceMappingURL=index.js.map |