import { useContext } from 'react'; import { UIContext } from '@/contexts/UIContext.tsx'; export const useUI = () => { const context = useContext(UIContext); if (context === undefined) { throw new Error('useUI must be used within a UIProvider'); } return context; };