authentification keyloack + début front

This commit is contained in:
trochas
2026-01-06 08:27:09 +01:00
parent 19ec8e979b
commit d13572347f
15 changed files with 345 additions and 33 deletions

View File

@@ -0,0 +1,10 @@
import { useContext } from 'react'
import { LocalDataContext } from './LocalDataContext2'
export const useLocalData = () => {
const context = useContext(LocalDataContext)
if (!context) {
throw new Error('useLocalData must be used within LocalDataProvider')
}
return context
}