UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

22 lines (21 loc) 440 B
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