'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React from 'react';
import { WatchCondition } from './WatchCondition.js';
export const withCondition = (Field)=>{
    const CheckForCondition = (props)=>{
        const { path } = props;
        return /*#__PURE__*/ _jsxDEV(WatchCondition, {
            path: path,
            children: /*#__PURE__*/ _jsxDEV(Field, {
                ...props
            }, void 0, false, {
                fileName: "src/forms/withCondition/index.tsx",
                lineNumber: 17,
                columnNumber: 9
            }, this)
        }, void 0, false, {
            fileName: "src/forms/withCondition/index.tsx",
            lineNumber: 16,
            columnNumber: 7
        }, this);
    };
    return CheckForCondition;
};

//# sourceMappingURL=index.js.map