refactor: setup tab switchers with route changers

This commit is contained in:
Haileyesus
2026-04-07 19:38:25 +03:00
parent 74336037bf
commit 582508424b
9 changed files with 474 additions and 61 deletions

View File

@@ -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;
};