mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-17 01:22:45 +00:00
refactor: setup tab switchers with route changers
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user