import { observer } from "mobx-react-lite"; // components import { IssueListBlock } from "@/components/issues/board-views/list/block"; import { IssueListHeader } from "@/components/issues/board-views/list/header"; // interfaces // mobx hook import { useMobxStore } from "@/hooks/store"; // store import { RootStore } from "@/store/root.store"; import { IIssueState, IIssue } from "types/issue"; export const IssueListView = observer(() => { const { issue: issueStore }: RootStore = useMobxStore(); return ( <> {issueStore?.states && issueStore?.states.length > 0 && issueStore?.states.map((_state: IIssueState) => (
{issueStore.getFilteredIssuesByState(_state.id) && issueStore.getFilteredIssuesByState(_state.id).length > 0 ? (
{issueStore.getFilteredIssuesByState(_state.id).map((_issue: IIssue) => ( ))}
) : (
No issues.
)}
))} ); });