import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components import { InboxIssueCard, InboxFiltersList } from "components/inbox"; // ui import { Loader } from "@plane/ui"; export const InboxIssuesListSidebar = observer(() => { const router = useRouter(); const { inboxId, inboxIssueId } = router.query; const { inboxIssues: inboxIssuesStore } = useMobxStore(); const issuesList = inboxId ? inboxIssuesStore.inboxIssues[inboxId.toString()] : undefined; return (
{issuesList ? ( issuesList.length > 0 ? (
{issuesList.map((issue) => ( ))}
) : (
{/* TODO: add filtersLength logic here */} {/* {filtersLength > 0 && "No issues found for the selected filters. Try changing the filters."} */}
) ) : ( )}
); });