@aplus-frontend/ui
Version:
17 lines (16 loc) • 352 B
JavaScript
import { ref as o, watch as m } from "vue";
import { isUndefined as u } from "lodash-unified";
const n = (e) => Array.isArray(e) ? e[0]?.value : e, c = (e) => {
const r = o(n(e.timezone));
return m(
() => e.timezone,
(t, i) => {
u(i) && (r.value = n(t));
}
), {
currentTimezone: r
};
};
export {
c as useDateTimezone
};