diff --git a/components/GroupCard.tsx b/components/GroupCard.tsx
index 76356e0..8866987 100644
--- a/components/GroupCard.tsx
+++ b/components/GroupCard.tsx
@@ -1,5 +1,5 @@
import FavoriteButton from "@/components/FavoriteButton";
-import Tooltip from "@/components/Tooltip";
+import HideButton from "@/components/HideButton";
import {
getAllTagsByType,
getFirstTagByType,
@@ -17,7 +17,6 @@ export type GroupCardProps = {
export function GroupCard({ group, canHide = false }: GroupCardProps) {
const router = useRouter();
- const { isHidden, switchHideFavorite } = useEventGroup(group.id);
const category = getFirstTagByType(group, "category");
const tagsToDisplay =
category && category.alias in viewConfig.categories
@@ -59,23 +58,7 @@ export function GroupCard({ group, canHide = false }: GroupCardProps) {
{canHide && (
-
-
-
+
)}
diff --git a/components/HideButton.tsx b/components/HideButton.tsx
new file mode 100644
index 0000000..d6d4141
--- /dev/null
+++ b/components/HideButton.tsx
@@ -0,0 +1,23 @@
+import Tooltip from "@/components/Tooltip";
+import {useEventGroup} from "@/lib/event-group";
+
+export default function HideButton({ groupId }: { groupId: number }) {
+ const { isHidden, switchHideFavorite } = useEventGroup(groupId);
+ return
+
+
+}
\ No newline at end of file