import React from "react"; // components import { LayoutSelection } from "./layout-selection"; import { IssueDropdown } from "./helpers/dropdown"; import { FilterSelection } from "./filters"; import { DisplayFiltersSelection } from "./display-filters"; import { FilterPreview } from "./filters-preview"; import { IssueListViewRoot } from "./list/root"; import { IssueKanBanViewRoot } from "./kanban"; import { IssueCalendarViewRoot } from "./calendar"; import { IssueSpreadsheetViewRoot } from "./spreadsheet"; import { IssueGanttViewRoot } from "./gantt"; // mobx import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; export const IssuesRoot = observer(() => { const { issueFilters: issueFilterStore }: RootStore = useMobxStore(); return (
Filter Header
{issueFilterStore?.issueLayout === "list" && } {issueFilterStore?.issueLayout === "kanban" && } {issueFilterStore?.issueLayout === "calendar" && } {issueFilterStore?.issueLayout === "spreadsheet" && } {issueFilterStore?.issueLayout === "gantt_chart" && }
); });