"use client"; // mobx react lite import { observer } from "mobx-react-lite"; // components import { IssueKanBanBlock } from "@/components/issues/board-views/kanban/block"; import { IssueKanBanHeader } from "@/components/issues/board-views/kanban/header"; // ui import { Icon } from "@/components/ui"; // interfaces // mobx hook import { useMobxStore } from "@/lib/mobx/store-provider"; import { RootStore } from "@/store/root.store"; import { IIssueState, IIssue } from "types/issue"; export const IssueKanbanView = observer(() => { const store: RootStore = useMobxStore(); return (
{store?.issue?.states && store?.issue?.states.length > 0 && store?.issue?.states.map((_state: IIssueState) => (
{store.issue.getFilteredIssuesByState(_state.id) && store.issue.getFilteredIssuesByState(_state.id).length > 0 ? (
{store.issue.getFilteredIssuesByState(_state.id).map((_issue: IIssue) => ( ))}
) : (
No issues in this state
)}
))}
); });