"use client"; import Link from "next/link"; import { AppStoreGrid } from "@/components/AppStoreGrid"; import { TenantSitePage } from "@/components/TenantSitePage"; import { Badge, Button, Container } from "@/components/ui"; import { useAuth } from "@/hooks/useAuth"; import { useTenantHost } from "@/hooks/useTenantHost"; import { useTheme } from "@/hooks/useTheme"; export default function HomePage() { const host = useTenantHost(); if (host.isTenantHost) { return ; } return ; } function PlatformHomePage() { const { theme } = useTheme(); const { isAuthenticated, login, loading } = useAuth(); return (
نسل جدید SuperApp

{theme?.site_name ?? "Torbatyar"}

یک پلتفرم، ده‌ها سرویس — حسابداری، CRM، فروشگاه، پیامک و بیشتر. همه با یک ورود واحد (SSO).

{isAuthenticated ? ( ) : ( )}
); }