diff --git a/frontend/app/(authenticated)/events/[id]/event-analysis.tsx b/frontend/app/(authenticated)/events/[id]/event-analysis.tsx index 8093b0e5..4646e154 100644 --- a/frontend/app/(authenticated)/events/[id]/event-analysis.tsx +++ b/frontend/app/(authenticated)/events/[id]/event-analysis.tsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; -import { LucideThumbsDown, LucideThumbsUp, SparklesIcon } from "lucide-react"; +import { SparklesIcon } from "lucide-react"; import { EventDTO, @@ -14,9 +14,7 @@ import { AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; -import { Button } from "@/components/ui/button"; import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"; -import { cn } from "@/lib/utils"; import { useLikeEvent } from "@/queries/like"; import { useUserStore } from "@/store/user/user-store-provider"; import { diff --git a/frontend/components/likes/like-buttons.tsx b/frontend/components/likes/like-buttons.tsx new file mode 100644 index 00000000..26807ce8 --- /dev/null +++ b/frontend/components/likes/like-buttons.tsx @@ -0,0 +1,36 @@ +import { LucideThumbsDown, LucideThumbsUp } from "lucide-react"; + +import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; + +interface Props { + onLike: () => void; + onDislike: () => void; + userLikeValue: 0 | 1 | -1; +} + +function LikeButtons({ onLike, onDislike, userLikeValue }: Props) { + return ( +
Is this helpful?
+