koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
31 lines (30 loc) • 606 B
JavaScript
"use client";
var E = /* @__PURE__ */ ((e) => (e.DRAWER_CLOSE = "DRAWER_CLOSE", e.DRAWER_OPEN = "DRAWER_OPEN", e))(E || {});
const o = {
open: void 0
}, p = (e = o, n) => {
switch (n.type) {
case "DRAWER_CLOSE": {
const { id: r } = n, R = r === e.open ? void 0 : e.open;
return {
...e,
open: R
};
}
case "DRAWER_OPEN": {
const { id: r } = n;
return {
...e,
open: r
};
}
default:
return e;
}
};
export {
E as Actions,
p as DrawerReducer,
o as initialState
};
//# sourceMappingURL=DrawerReducer.js.map