refactor docs into feature folder

This commit is contained in:
Tom Boullay
2026-04-28 13:54:41 +02:00
parent 9c7c59973e
commit eebeee9ed8
15 changed files with 18 additions and 18 deletions
@@ -0,0 +1,12 @@
import { useContext } from "react";
import { DocsLanguageContext } from "@/features/docs/contexts/DocsLanguageContext";
export function useDocsLanguage() {
const context = useContext(DocsLanguageContext);
if (!context) {
throw new Error("useDocsLanguage must be used inside DocsLanguageProvider");
}
return context;
}