fix: fixed eslint errors
Some checks failed
Frontend CI / Lint and Build Frontend (pull_request) Failing after 21s

This commit is contained in:
2025-08-02 16:37:14 +03:00
parent 9a11b4ea7e
commit 19cba1606b
7 changed files with 91 additions and 93 deletions

View File

@@ -0,0 +1,10 @@
import { useContext } from 'react';
import { LanguageContext } from '../contexts/languageContextData';
export const useLanguage = () => {
const context = useContext(LanguageContext);
if (!context) {
throw new Error('useLanguage must be used within a LanguageProvider');
}
return context;
};