{t("userEvents")}}
>
setSearchDropdownOpen(isOpen)}
className="keycloak__user_events_search_selector_dropdown__toggle"
>
{t("searchForEvent")}
}
isOpen={searchDropdownOpen}
>
{Object.entries(activeFilters).length > 0 && (
{Object.entries(activeFilters).map((filter) => {
const [key, value] = filter as [
keyof UserEventSearchForm,
string | EventType[]
];
return (
removeFilter(key)}
>
{typeof value === "string" ? (
{value}
) : (
value.map((entry) => (
removeFilterValue(key, entry)}
>
{entry}
))
)}
);
})}
)}
event.details !== undefined,
cellRenderer: DetailCell,
},
]}
isPaginated
ariaLabelKey="events:title"
columns={[
{
name: "time",
displayKey: "events:time",
cellRenderer: (row) => moment(row.time).format("LLL"),
cellFormatters: [expandable],
},
{
name: "userId",
displayKey: "events:user",
cellRenderer: UserDetailLink,
},
{
name: "type",
displayKey: "events:eventType",
cellRenderer: StatusRow,
},
{
name: "ipAddress",
displayKey: "events:ipAddress",
transforms: [cellWidth(10)],
},
{
name: "clientId",
displayKey: "events:client",
},
]}
emptyState={
}
/>