import React, { useEffect } from 'react'; import { useUIStore } from '../../stores/uiStore'; import { useSettingsStore } from '../../stores/settingsStore'; import { MobileScreenHeader } from './MobileScreenHeader'; const sections = [ { id: 'general', label: 'General', icon: ( ), }, { id: 'streaming', label: 'Streaming', icon: ( ), }, { id: 'storage', label: 'Storage', icon: ( ), }, { id: 'users', label: 'Users', icon: ( ), }, ]; export function MobileInstancePanel() { const pushMobileScreen = useUIStore((s) => s.pushMobileScreen); const fetchInstanceSettings = useSettingsStore((s) => s.fetchInstanceSettings); const fetchStreamingLimits = useSettingsStore((s) => s.fetchStreamingLimits); // Pre-fetch instance data so sub-panels have it when they mount // (mirrors InstancePanel.tsx useEffect on desktop) useEffect(() => { fetchInstanceSettings(); fetchStreamingLimits(); }, [fetchInstanceSettings, fetchStreamingLimits]); return (