synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
22 lines (21 loc) • 440 B
JavaScript
import { jsx as m } from "react/jsx-runtime";
import e from "dayjs";
import f from "../../DateTimePicker/DateTimePicker.js";
const n = ({
disabled: o,
value: r,
onChange: i
}) => /* @__PURE__ */ m(
f,
{
disabled: o,
value: r ? e(r) : null,
onChange: (t) => {
t == null || typeof t == "string" ? i(t) : i(t.toISOString());
}
}
);
export {
n as DateTimeWidget
};
//# sourceMappingURL=DateTimeWidget.js.map