You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. import ContentStatistics from "@/Components/DashboardComponents/ContentStatistics";
  2. import Feedback from "@/Components/DashboardComponents/Feedback";
  3. import PagesOverview from "@/Components/DashboardComponents/PagesOverview";
  4. import ProjectsOverview from "@/Components/DashboardComponents/ProjectsOverview";
  5. import UsersStatistics from "@/Components/DashboardComponents/UsersStatistics";
  6. import { User } from "@/types";
  7. import { PropsWithChildren } from "react";
  8. export default function Superadmin({ user }: PropsWithChildren<{ user: User }>) {
  9. const thisUser = user;
  10. return (
  11. <div id="SuperadminDashboard" className="w-full h-full grid grid-cols-4 grid-rows-6 gap-6">
  12. <section className="col-start-1 col-span-4 row-span-1">
  13. <ContentStatistics />
  14. </section>
  15. <section className="col-span-3 row-span-3">
  16. <PagesOverview />
  17. </section>
  18. <section className="row-span-3">
  19. <Feedback />
  20. </section>
  21. <section className="col-span-1 row-span-2">
  22. <UsersStatistics />
  23. </section>
  24. <section className="col-span-3 row-span-2">
  25. <ProjectsOverview user={thisUser} />
  26. </section>
  27. </div>
  28. );
  29. }