import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import { Fragment } from 'react';
import { RenderCustomComponent } from '../elements/RenderCustomComponent/index.js';
import { FieldLabel } from '../fields/FieldLabel/index.js';
export const combineFieldLabel = ({ CustomLabel, field, prefix })=>{
    return /*#__PURE__*/ _jsxDEV(Fragment, {
        children: [
            prefix ? /*#__PURE__*/ _jsxDEV(Fragment, {
                children: [
                    /*#__PURE__*/ _jsxDEV("span", {
                        style: {
                            display: 'inline-block'
                        },
                        children: prefix
                    }, void 0, false, {
                        fileName: "src/utilities/combineFieldLabel.tsx",
                        lineNumber: 21,
                        columnNumber: 11
                    }, this),
                    ' > '
                ]
            }, void 0, true, {
                fileName: "src/utilities/combineFieldLabel.tsx",
                lineNumber: 20,
                columnNumber: 9
            }, this) : null,
            /*#__PURE__*/ _jsxDEV("span", {
                style: {
                    display: 'inline-block'
                },
                children: /*#__PURE__*/ _jsxDEV(RenderCustomComponent, {
                    CustomComponent: CustomLabel,
                    Fallback: /*#__PURE__*/ _jsxDEV(FieldLabel, {
                        label: 'label' in field && field.label
                    }, void 0, false, {
                        fileName: "src/utilities/combineFieldLabel.tsx",
                        lineNumber: 28,
                        columnNumber: 21
                    }, void 0)
                }, void 0, false, {
                    fileName: "src/utilities/combineFieldLabel.tsx",
                    lineNumber: 26,
                    columnNumber: 9
                }, this)
            }, void 0, false, {
                fileName: "src/utilities/combineFieldLabel.tsx",
                lineNumber: 25,
                columnNumber: 7
            }, this)
        ]
    }, void 0, true, {
        fileName: "src/utilities/combineFieldLabel.tsx",
        lineNumber: 18,
        columnNumber: 5
    }, this);
};

//# sourceMappingURL=combineFieldLabel.js.map