import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; // mobx store import { useInboxIssues } from "hooks/store"; // components import { InboxIssueCard, InboxFiltersList } from "components/inbox"; // ui import { Loader } from "@plane/ui"; export const InboxIssuesListSidebar = observer(() => { const router = useRouter(); const { inboxIssueId } = router.query; const { currentInboxIssueIds: currentInboxIssues } = useInboxIssues(); const issuesList = currentInboxIssues; return (
{issuesList ? ( issuesList.length > 0 ? (
{issuesList.map((id) => ( ))}
) : (
{/* TODO: add filtersLength logic here */} {/* {filtersLength > 0 && "No issues found for the selected filters. Try changing the filters."} */}
) ) : ( )}
); });