import React from 'react';
import { FormField, NumberInput } from '@wix/design-system';
import { Field } from '../Field';
import { dataHooks } from '../dataHooks';
export const Number = ({ dataHook, schema, initialValue, onChange, }) => {
    return (React.createElement(Field, { dataHook: dataHook, type: schema.type },
        React.createElement(FormField, { dataHook: dataHooks.Label, label: schema.label },
            React.createElement(NumberInput, { dataHook: dataHooks.Input, defaultValue: initialValue || undefined, onChange: (e) => onChange(e) }))));
};
//# sourceMappingURL=Number.js.map