import { jsx as _jsx } from "react/jsx-runtime";
import { TextInput } from '@gravity-ui/uikit';
import { formGeneratorCn } from "../../../utils/cn.js";
import FieldBase from "../../FieldBase/FieldBase.js";
const b = formGeneratorCn('number-dynamic-field');
const NumberDynamicField = ({ title, value, onUpdate, className }) => {
    const onUpdateFunc = (updateValue) => {
        onUpdate(Number(updateValue));
    };
    return (_jsx(FieldBase, { title: title, className: b(null, className), onRefresh: onUpdate, children: _jsx(TextInput, { value: value || '', onUpdate: onUpdateFunc }) }));
};
export default NumberDynamicField;
//# sourceMappingURL=Number.js.map
