Files
claudecodeui/src/components/refactored/shared/contexts/system-ui-context/useSystemUI.ts
2026-04-07 19:38:25 +03:00

12 lines
345 B
TypeScript

import { useContext } from 'react';
import { SystemUIContext } from '@/components/refactored/shared/contexts/system-ui-context/SystemUIContext';
export const useSystemUI = () => {
const context = useContext(SystemUIContext);
if (!context) {
throw new Error('useSystemUI must be used within SystemUIProvider');
}
return context;
};