import { useParams } from "next/navigation"; import { IssueEmojiReactions, IssueVotes } from "@/components/issues/peek-overview"; import { useProject } from "@/hooks/store"; import useIsInIframe from "@/hooks/use-is-in-iframe"; // type IssueReactionsProps = { // workspaceSlug: string; // projectId: string; // }; export const IssueReactions: React.FC = () => { const { workspace_slug: workspaceSlug, project_id: projectId } = useParams(); const { canVote, canReact } = useProject(); const isInIframe = useIsInIframe(); return (
{canVote && ( <>
)} {!isInIframe && canReact && (
)}
); };