import { FC } from "react"; 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"; // mobx hook import { useIssue } from "@/hooks/store"; // types import { IIssueState, IIssue } from "@/types/issue"; type IssueListViewProps = { workspaceSlug: string; projectId: string; }; export const IssueListView: FC = observer((props) => { const { workspaceSlug, projectId } = props; // store hooks const { states, getFilteredIssuesByState } = useIssue(); return ( <> {states && states.length > 0 && states.map((_state: IIssueState) => (
{getFilteredIssuesByState(_state.id) && getFilteredIssuesByState(_state.id).length > 0 ? (
{getFilteredIssuesByState(_state.id).map((_issue: IIssue) => ( ))}
) : (
No issues.
)}
))} ); });