/** * Globals Settings — main content area * * Pro users: full-width live preview (editors are in the sidebar) * Free users: FeatureUpgradeTab marketing page */ import { usePro } from '@/contexts/pro-context' import { useGlobalsContext } from './contexts/globals-context' import { GlobalsPreview } from './components/globals-preview' import { GlobalsUpgradeTab } from './components/upgrade-tab' import { Loader2 } from 'lucide-react' export function GlobalsSettings() { const { isPro } = usePro() // Free users see the upgrade tab if (!isPro) { return (
) } return } /** Pro-only live preview */ function GlobalsEditor() { const { settings, loading } = useGlobalsContext() if (loading) { return (
) } return (
) }