mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-16 01:12:46 +00:00
12 lines
345 B
TypeScript
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;
|
|
};
|