import { FormField, NumberInput } from "@wix/design-system";
import React from "react";
const TableSettingsCountSection = ({
  onCountChange,
  dataHook,
  inputRef,
  input,
  title,
  hasError,
  icon,
  onBlur,
  onKeyDown,
  logBi
}) => {
  const onChange = (count) => {
    onCountChange(count);
    logBi({ dataHook, value: count });
  };
  return /* @__PURE__ */ React.createElement(
    FormField,
    {
      label: title,
      status: hasError ? "error" : void 0,
      suffix: icon,
      labelSize: "small"
    },
    /* @__PURE__ */ React.createElement(
      NumberInput,
      {
        inputRef,
        value: input,
        onChange,
        min: 0,
        size: "medium",
        dataHook,
        onBlur,
        onKeyDown
      }
    )
  );
};
export {
  TableSettingsCountSection
};
//# sourceMappingURL=table-settings-count-section.js.map
