import { FC } from "react"; import { observer } from "mobx-react"; import { Inbox } from "lucide-react"; // hooks import { Loader } from "@plane/ui"; import { InboxIssueActionsHeader } from "components/inbox"; import { InboxIssueDetailRoot } from "components/issues/issue-detail/inbox"; import { useInboxIssues } from "hooks/store"; // components // ui type TInboxContentRoot = { workspaceSlug: string; projectId: string; inboxId: string; inboxIssueId: string | undefined; }; export const InboxContentRoot: FC = observer((props) => { const { workspaceSlug, projectId, inboxId, inboxIssueId } = props; // hooks const { issues: { loader, getInboxIssuesByInboxId }, } = useInboxIssues(); const inboxIssuesList = inboxId ? getInboxIssuesByInboxId(inboxId) : undefined; return ( <> {loader === "init-loader" ? (
) : ( <> {!inboxIssueId ? (
{inboxIssuesList && inboxIssuesList.length > 0 ? ( {inboxIssuesList?.length} issues found. Select an issue from the sidebar to view its details. ) : ( No issues found )}
) : (
)} )} ); });