{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}
))
)}
);
})}
)}