import { jsx as r } from "react/jsx-runtime";
import { useCallback as m } from "react";
import { a as f } from "./TextInput.63vMRxAK.js";
import { u as p } from "./shortVideoModule.BlUq1dqv.js";
const h = ({
  type: e,
  value: i,
  onChange: t,
  disabled: l = !1,
  error: o = null
}) => {
  const a = p(e), s = m(
    (n) => {
      t(n.target.value);
    },
    [t]
  );
  return /* @__PURE__ */ r(
    f,
    {
      label: "Link",
      value: i,
      onChange: s,
      helper: o && typeof o == "string" ? o : `Add link to ${a.platformName} ${a.singular}`,
      isDisabled: l,
      isError: !!o
    }
  );
};
export {
  h as S
};
