synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
18 lines (17 loc) • 406 B
JavaScript
import { jsx as n } from "react/jsx-runtime";
const m = (t) => {
const { BaseInputTemplate: i } = t.registry.templates;
let e;
return (t.schema.type === "number" || t.schema.type === "integer") && (e = "text"), /* @__PURE__ */ n(
i,
{
...t,
options: { ...t.options, inputType: e }
}
);
};
export {
m as TextWidget,
m as default
};
//# sourceMappingURL=TextWidget.js.map