"use client"; import React from 'react'; import { RefreshCw, Smartphone, RotateCw } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Slider } from '@/components/ui/slider'; import { useAppStore } from '@/store/app-store'; export function CrossPlatformPreview() { const { syncStates } = useAppStore(); const [latency, setLatency] = React.useState([0]); return (
{/* Grid Layout */}
{/* Roblox Viewport */}
🎮 Roblox
3 players online
🎮
Roblox Game View
{/* Web Browser Viewport */}
🌐 Web
1920x1080
https://game.aethex.com
🌐
Web Browser View
{/* Mobile Device Mockup */}
📱 Mobile
📱
Mobile View
{/* Desktop Window */}
🖥️ Desktop
Windows
AeThex Game
🖥️
Desktop View
{/* Floating Sync Status Panel */}

Real-Time Sync Status

{syncStates.map((state: any, i: number) => ( ))}
Variable Roblox Web Mobile Desktop Status
{state.variable} {state.roblox} {state.web} {state.mobile} {state.desktop} {state.status === 'synced' && '✓ Synced'} {state.status === 'syncing' && '⚠ Syncing'} {state.status === 'conflict' && '✗ Conflict'}
Latency Simulator: {latency[0]}ms
Total syncs: 1,247 Conflicts: 3
Avg latency: 18ms Bandwidth: 2.3 KB/s
); }