message: rebase and use new empty state logic
diff: @@ -6,13 +6,10 @@ import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
  import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
  import { boolFormatter, emptyFormatter } from "../util";
  import { useAdminClient } from "../context/auth/AdminClient";
  -import UserRepresentation from "keycloak-admin/lib/defs/userRepresentation";
  export const UsersInRoleTab = () => {
  const { t } = useTranslation("roles");
  - const [users, setUsers] = useState<UserRepresentation[]>([]);
  -
  const { id } = useParams<{ id: string }>();
  const adminClient = useAdminClient();
  @@ -22,7 +19,6 @@ export const UsersInRoleTab = () => {
  const usersWithRole = await adminClient.roles.findUsersWithRole({
  name: role.name!,
  });
  - setUsers(usersWithRole);
  return usersWithRole;
  };
  @@ -33,17 +29,17 @@ export const UsersInRoleTab = () => {
  return (
  <>
  <PageSection data-testid="users-page" variant="light">
  - {users.length == 0 ? (
  + <KeycloakDataTable
  + loader={loader}
  + ariaLabelKey="roles:roleList"
  + searchPlaceholderKey=""
  + emptyState={
  <ListEmptyState
  hasIcon={true}
  message={t("noDirectUsers")}
  instructions={t("noUsersEmptyStateDescription")}
  />
  - ) : (
  - <KeycloakDataTable
  - loader={loader}
  - ariaLabelKey="roles:roleList"
  - searchPlaceholderKey=""
  + }
  columns={[
  {
  name: "username",
  @@ -67,7 +63,6 @@ export const UsersInRoleTab = () => {
  },
  ]}
  />
  - )}
  </PageSection>
  </>
  );
  