'use client' import { useMarketplacePreferences } from '@/components/MarketplaceShell' import Image from 'next/image' import Link from 'next/link' import { resolveBrowserAppUrl } from '@/lib/appUrls' export default function WorkspaceTabs() { const { language, theme } = useMarketplacePreferences() const dashboardUrl = resolveBrowserAppUrl(process.env.NEXT_PUBLIC_DASHBOARD_URL ?? 'http://localhost:3000/dashboard') const copy = { en: { badge: 'Unified Workspace', title: 'One launch point on port 3000 for marketplace discovery, company operations, and platform admin work.', intro: 'The apps still run as separate Next.js surfaces internally, but the navbar now takes you straight to each workspace area without hunting for ports.', sectionBadge: 'RentalDriveGo Marketplace', sectionTitle: 'Browse local rental fleets without losing the company behind the wheel.', sectionBodyA: 'Discovery happens here. Booking and payment happen on each rental company\'s own branded site.', sectionBodyB: 'Customers only reach that branded booking site after selecting a vehicle from a company\'s fleet.', exploreVehicles: 'Explore vehicles', viewPricing: 'View pricing', nowServing: 'Now serving', promoTitle: 'Discovery, pricing, owner sign-in, and booking entry all stay anchored on the marketplace surface.', promoBody: 'Company Workspace and Platform Operations stay available from the navbar, while branded booking starts after a renter picks a vehicle.', customerPaths: 'Customer Paths', ownerSignIn: 'Owner sign in', pricing: 'Pricing', workspaceAreas: 'Workspace Areas', workspaceA: 'Company Workspace for fleet operations, team, billing, and analytics.', workspaceB: 'Platform Operations for platform-level support and tenant oversight.', workspaceC: 'Branded booking handoff begins only after a renter chooses a specific vehicle.', }, fr: { badge: 'Espace unifié', title: 'Un point d’entrée sur le port 3000 pour la découverte marketplace, les opérations de l’entreprise et l’administration de la plateforme.', intro: 'Les applications restent des interfaces Next.js séparées en interne, mais la barre de navigation mène directement à chaque espace sans avoir à changer de port manuellement.', sectionBadge: 'Marketplace RentalDriveGo', sectionTitle: 'Parcourez les flottes locales sans perdre l’identité de l’entreprise qui gère la location.', sectionBodyA: 'La découverte commence ici. La réservation et le paiement se font sur le site de réservation propre à chaque entreprise.', sectionBodyB: 'Les clients accèdent à ce site de réservation seulement après avoir choisi un véhicule dans la flotte d’une entreprise.', exploreVehicles: 'Explorer les véhicules', viewPricing: 'Voir les tarifs', nowServing: 'Disponible', promoTitle: 'La découverte, les tarifs, la connexion propriétaire et l’accès à la réservation restent ancrés dans la marketplace.', promoBody: 'L’espace entreprise et les opérations de la plateforme restent accessibles depuis la navigation, tandis que la réservation de marque commence après le choix d’un véhicule.', customerPaths: 'Parcours client', ownerSignIn: 'Connexion propriétaire', pricing: 'Tarifs', workspaceAreas: 'Espaces de travail', workspaceA: 'Espace entreprise pour la flotte, l’équipe, la facturation et l’analyse.', workspaceB: 'Opérations plateforme pour le support global et la supervision multi-entreprises.', workspaceC: 'Le transfert vers la réservation de marque commence seulement après le choix d’un véhicule précis.', }, ar: { badge: 'مساحة موحدة', title: 'نقطة دخول واحدة على المنفذ 3000 لاكتشاف السوق وعمليات الشركات وإدارة المنصة.', intro: 'ما زالت التطبيقات تعمل كواجهات Next.js منفصلة داخلياً، لكن شريط التنقل ينقلك مباشرة إلى كل مساحة عمل من دون الحاجة إلى البحث عن المنافذ.', sectionBadge: 'سوق RentalDriveGo', sectionTitle: 'تصفح أساطيل التأجير المحلية مع الحفاظ على هوية الشركة التي تدير الحجز.', sectionBodyA: 'الاكتشاف يبدأ هنا. الحجز والدفع يتمان على موقع الحجز الخاص بكل شركة.', sectionBodyB: 'لا يصل العميل إلى موقع الحجز الخاص بالشركة إلا بعد اختيار سيارة من أسطول تلك الشركة.', exploreVehicles: 'استكشف السيارات', viewPricing: 'عرض الأسعار', nowServing: 'المتاح الآن', promoTitle: 'الاكتشاف والأسعار وتسجيل دخول المالك وبداية الحجز تبقى كلها داخل واجهة السوق.', promoBody: 'تبقى مساحة الشركة وعمليات المنصة متاحتين من شريط التنقل، بينما يبدأ الحجز المرتبط بالعلامة التجارية بعد اختيار المستأجر لسيارة.', customerPaths: 'مسارات العملاء', ownerSignIn: 'دخول المالك', pricing: 'الأسعار', workspaceAreas: 'مساحات العمل', workspaceA: 'مساحة الشركة لإدارة الأسطول والفريق والفوترة والتحليلات.', workspaceB: 'عمليات المنصة للدعم والإشراف على الشركات على مستوى المنصة.', workspaceC: 'الانتقال إلى موقع الحجز الخاص بالشركة يبدأ فقط بعد اختيار سيارة محددة.', }, }[language] return (
RentalDriveGo

{copy.badge}

{copy.title}

{copy.intro}

{copy.sectionBadge}

{copy.sectionTitle}

{copy.sectionBodyA}

{copy.sectionBodyB}

{copy.exploreVehicles} {copy.viewPricing}

{copy.nowServing}

{copy.promoTitle}

{copy.promoBody}

{copy.customerPaths}

{copy.exploreVehicles} {copy.ownerSignIn} {copy.pricing}

{copy.workspaceAreas}

  • {copy.workspaceA}
  • {copy.workspaceB}
  • {copy.workspaceC}
) }