FPSMS-frontend
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

33 linhas
741 B

  1. import { Metadata } from "next";
  2. import { I18nProvider } from "@/i18n";
  3. import { Suspense } from "react";
  4. import { getServerI18n } from "@/i18n";
  5. import DashboardPage from "@/components/DashboardPage";
  6. import { SearchParams } from "@/app/utils/fetchUtil";
  7. export const metadata: Metadata = {
  8. title: "Dashboard",
  9. };
  10. type Props = {
  11. } & SearchParams
  12. const Dashboard: React.FC<Props> = async ({
  13. searchParams
  14. }) => {
  15. const { t } = await getServerI18n("dashboard");
  16. return (
  17. <I18nProvider namespaces={["dashboard", "common"]}>
  18. <Suspense fallback={<DashboardPage.Loading />}>
  19. <DashboardPage
  20. searchParams={searchParams}
  21. />
  22. </Suspense>
  23. </I18nProvider>
  24. )
  25. };
  26. export default Dashboard;