import React from "react"; // react beautiful dnd import { DragDropContext, Droppable } from "react-beautiful-dnd"; // components import { IssueHeader } from "./header"; import { IssueContent } from "./content"; import { IssueFooter } from "./footer"; // mobx import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; export const IssueRoot = observer(() => { const store: RootStore = useMobxStore(); const { kanban: issueViewStore } = store; const onDragEnd = (result: any) => { console.log("result", result); }; return (
{issueViewStore.loader && issueViewStore?.issues === null ? (
Loading...
) : (
{issueViewStore?.getIssues && Object.keys(issueViewStore?.getIssues).length > 0 ? (
{Object.keys(issueViewStore?.getIssues).map((_issueStateKey: any) => (
{(provided: any, snapshot: any) => ( <>
{provided.placeholder} )}
))}
) : (
No Issues are available
)}
)}
); });