/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; // components import { IssueEmojiReactions } from "@/components/issues/reactions/issue-emoji-reactions"; import { IssueVotes } from "@/components/issues/reactions/issue-vote-reactions"; // hooks import { usePublish } from "@/hooks/store/publish"; import useIsInIframe from "@/hooks/use-is-in-iframe"; type Props = { anchor: string; }; export const IssueReactions = observer(function IssueReactions(props: Props) { const { anchor } = props; // store hooks const { canVote, canReact } = usePublish(anchor); const isInIframe = useIsInIframe(); return (
{canVote && (
)} {!isInIframe && canReact && (
)}
); });