44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { usePlatformConfig } from "@/shared/contexts/PlatformConfigContext";
|
|
import { Theme } from "@/shared/types/system";
|
|
import { About as ModernAbout } from "@/components/theme/modern/About";
|
|
import { About as ClassicAbout } from "@/components/theme/classic/About";
|
|
import { About as CreativeAbout } from "@/components/theme/creative/About";
|
|
import { About as TemuAbout } from "@/components/theme/temu/About";
|
|
import { Navigation } from "@/shared/components/Navigation";
|
|
import { Footer } from "@/shared/components/Footer";
|
|
import { NavigationItems } from "@/components/theme/Theme.const";
|
|
import { AboutContent } from "@/components/about/AboutContent";
|
|
|
|
export const AboutThemeSelector: React.FC = () => {
|
|
const { platformConfig } = usePlatformConfig();
|
|
const currentTheme = platformConfig.theme || Theme.DEFAULT;
|
|
|
|
// Render the About page based on the current theme
|
|
switch (currentTheme) {
|
|
case Theme.MODERN:
|
|
return <ModernAbout navItems={NavigationItems} />;
|
|
case Theme.CLASSIC:
|
|
return <ClassicAbout navItems={NavigationItems} />;
|
|
case Theme.CREATIVE:
|
|
return <CreativeAbout navItems={NavigationItems} />;
|
|
case Theme.TEMU:
|
|
return <TemuAbout navItems={NavigationItems} />;
|
|
case Theme.DEFAULT:
|
|
default:
|
|
return (
|
|
<div className="min-h-screen bg-background flex flex-col justify-between">
|
|
<Navigation items={NavigationItems} />
|
|
<main className="flex-1 max-w-7xl mx-auto px-4 py-8">
|
|
<AboutContent />
|
|
</main>
|
|
<div>
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
};
|