/** * 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"; // helpers import { cn } from "@plane/utils"; // hooks import { useMember } from "@/hooks/store/use-member"; import { useUser } from "@/hooks/store/use-user"; type Props = { id: string; }; export const EditorUserMention = observer(function EditorUserMention(props: Props) { const { id } = props; // store hooks const { data: currentUser } = useUser(); const { getMemberById } = useMember(); // derived values const userDetails = getMemberById(id); if (!userDetails) { return (