"use client";
import React from "react";
import NewUser from "./features/UserRoles/NewUser/NewUser";
import { useSelector } from "react-redux";
// import { selectIsLoggedIn } from "./redux/auth/selectors";
import { selectShowNewUserModal } from "./redux/ui/selectors";

const Modals: React.FC = () => {
  // const isLoggedIn = useSelector(selectIsLoggedIn);
  const showNewUserModal = useSelector(selectShowNewUserModal);

  return <>{showNewUserModal && <NewUser />}</>;
};
export default Modals;
