21 lines
638 B
TypeScript
21 lines
638 B
TypeScript
import LandingPage from '@/components/LandingPage'
|
|
import LandingLayout from '@/components/LandingLayout'
|
|
import AppHomePage from '@/components/AppHomePage'
|
|
|
|
// Режим работы приложения: 'landing' или 'app'
|
|
const APP_MODE = process.env.NEXT_PUBLIC_APP_MODE || 'landing'
|
|
|
|
export default function HomePage() {
|
|
// Если режим лендинга - показываем лендинг
|
|
if (APP_MODE === 'landing') {
|
|
return (
|
|
<LandingLayout>
|
|
<LandingPage />
|
|
</LandingLayout>
|
|
)
|
|
}
|
|
|
|
// Иначе показываем основное приложение
|
|
return <AppHomePage />
|
|
}
|