import InsightsOutlinedIcon from "@mui/icons-material/InsightsOutlined";

import { RouterExtension } from "../../router/Router";
import { NavigationOverrides } from "../../types";

export const router: RouterExtension = {
  app: "report",
  pages: () => {
    return {
      page: (async () => (await import("./pages/report")).default)(),
      offline: true,
    };
  },
};

export const navigation: NavigationOverrides = {
  "report.index:list": {
    icon: InsightsOutlinedIcon,
    route: {
      id: "report.index:list",
      app: "report",
      view: "index",
      action: "list",
      title: "Reports",
      navigation: true,
      path: "/report",
      page: "report",
    },
  },
} as const;
