'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-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__*/ _jsxDEV("code", {
        className: "code-cell",
        style: noWrapStyle,
        children: /*#__PURE__*/ _jsxDEV("span", {
            children: textToShow
        }, void 0, false, {
            fileName: "src/elements/Table/DefaultCell/fields/Code/index.tsx",
            lineNumber: 20,
            columnNumber: 7
        }, this)
    }, void 0, false, {
        fileName: "src/elements/Table/DefaultCell/fields/Code/index.tsx",
        lineNumber: 19,
        columnNumber: 5
    }, this);
};

//# sourceMappingURL=index.js.map