import React, { Fragment, ReactElement } from "react"; import { observer } from "mobx-react-lite"; import { Tab } from "@headlessui/react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // layouts import { AppLayout } from "layouts/app-layout"; // components import { CustomAnalytics, ScopeAndDemand } from "components/analytics"; import { WorkspaceAnalyticsHeader } from "components/headers"; import { NewEmptyState } from "components/common/new-empty-state"; // icons import { Plus } from "lucide-react"; // assets import emptyAnalytics from "public/empty-state/empty_analytics.webp"; // constants import { ANALYTICS_TABS } from "constants/analytics"; // type import { NextPageWithLayout } from "types/app"; const AnalyticsPage: NextPageWithLayout = observer(() => { // store const { project: { workspaceProjects }, commandPalette: { toggleCreateProjectModal }, trackEvent: { setTrackElement }, } = useMobxStore(); return ( <> {workspaceProjects && workspaceProjects.length > 0 ? (