Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Failing after 3m5s
🚀 Build & Deploy / 🏗️ Build (push) Failing after 13m16s
🚀 Build & Deploy / 🚀 Deploy (push) Has been skipped
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s
29 lines
702 B
TypeScript
29 lines
702 B
TypeScript
import React from "react";
|
|
import { Metadata } from "next";
|
|
import { notFound } from "next/navigation";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Über uns",
|
|
description:
|
|
"Erfahren Sie mehr über MB Grid Solutions, unsere Expertise und unser Manifest für technische Exzellenz.",
|
|
};
|
|
|
|
interface PageProps {
|
|
params: Promise<{ locale: string }>;
|
|
}
|
|
|
|
export default async function Page({ params }: PageProps) {
|
|
const { locale } = await params;
|
|
|
|
// Dynamically import the MDX content based on locale
|
|
let Content: React.ComponentType;
|
|
try {
|
|
const mdx = await import(`@/content/${locale}/about.mdx`);
|
|
Content = mdx.default;
|
|
} catch {
|
|
notFound();
|
|
}
|
|
|
|
return <Content />;
|
|
}
|