"use client";
import { j as o } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import l from "../Loading/index.mjs";
import c from "../TextInput/index.mjs";
import n from "../../../node_modules/.pnpm/@tabler_icons-react@3.34.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs";
import m from "../../../node_modules/.pnpm/@tabler_icons-react@3.34.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs";
function j(t) {
  const { loading: e, valid: s, ...i } = t;
  let r = null;
  return e ? r = /* @__PURE__ */ o.jsx(l, { style: { height: 24 } }) : s ? r = /* @__PURE__ */ o.jsx(n, { color: "var(--color-success-600)" }) : t.error && (r = /* @__PURE__ */ o.jsx(m, { color: "var(--color-error-500)" })), /* @__PURE__ */ o.jsx(c, { ...i, rightSection: r });
}
export {
  j as default
};
//# sourceMappingURL=index.mjs.map
