dashpresshq/dashpress

View on GitHub
src/frontend/views/Dashboard/List/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { msg } from "@lingui/macro";

import { NAVIGATION_LINKS } from "@/frontend/lib/routing/links";
import { useSetPageDetails } from "@/frontend/lib/routing/usePageDetails";
import { META_USER_PERMISSIONS } from "@/shared/constants/user";
import { HOME_DASHBOARD_KEY } from "@/shared/types/dashboard";

import { BaseDashboard } from "./_BaseDashboard";

export function Dashboard() {
  useSetPageDetails({
    pageTitle: msg`Dashboard`,
    viewKey: "HOME",
    permission: META_USER_PERMISSIONS.NO_PERMISSION_REQUIRED,
  });

  return (
    <BaseDashboard
      dashboardId={HOME_DASHBOARD_KEY}
      manageLink={NAVIGATION_LINKS.DASHBOARD.MANAGE}
    />
  );
}