import type { ReactNode } from 'react'; import { AISettingsSyncContext } from '@/contexts/AISettingsSyncContext'; import { useAISettingsSync } from '@/hooks/useAISettingsSync'; interface AISettingsSyncProviderProps { children: ReactNode; } /** * Runs NIP-78 AI-settings sync once for the whole app and exposes its state to * descendants (e.g. the AI settings page). Must live below NostrProvider and * AISettingsProvider so it can read the active account and current settings. */ export function AISettingsSyncProvider({ children }: AISettingsSyncProviderProps) { const sync = useAISettingsSync(); return ( {children} ); }