'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React from 'react';
import { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js';
import { RowLabelProvider } from './Context/index.js';
const baseClass = 'row-label';
export const RowLabel = (props)=>{
    const { className, CustomComponent, label, path, rowNumber } = props;
    return /*#__PURE__*/ _jsxDEV(RowLabelProvider, {
        path: path,
        rowNumber: rowNumber,
        children: /*#__PURE__*/ _jsxDEV(RenderCustomComponent, {
            CustomComponent: CustomComponent,
            Fallback: typeof label === 'string' ? /*#__PURE__*/ _jsxDEV("span", {
                className: [
                    baseClass,
                    className
                ].filter(Boolean).join(' '),
                style: {
                    pointerEvents: 'none'
                },
                children: label
            }, void 0, false, {
                fileName: "src/forms/RowLabel/index.tsx",
                lineNumber: 21,
                columnNumber: 13
            }, void 0) : label
        }, void 0, false, {
            fileName: "src/forms/RowLabel/index.tsx",
            lineNumber: 17,
            columnNumber: 7
        }, this)
    }, void 0, false, {
        fileName: "src/forms/RowLabel/index.tsx",
        lineNumber: 16,
        columnNumber: 5
    }, this);
};

//# sourceMappingURL=index.js.map