@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
14 lines (13 loc) • 379 B
JavaScript
import { X as f } from "../../../index-BDZyTvOW.js";
import { useMemo as o } from "react";
function i({ includeSystemGenerated: s = !1, includeInactiveUsers: e = !1 } = {}) {
const t = f((r) => r.users);
return o(
() => t.filter((r) => !(!s && r.system_generated || !e && !r.is_active)),
[t, s, e]
);
}
export {
i as useUsers
};
//# sourceMappingURL=index.js.map