Initial commit

This commit is contained in:
2026-08-02 20:55:23 +02:00
parent 411f484b40
commit d558d18d9a
295 changed files with 9 additions and 5880 deletions
-24
View File
@@ -1,24 +0,0 @@
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, use } from 'react';
import { useConsent } from './useConsent.js';
const ConsentContext = /*#__PURE__*/ createContext(null);
export function ConsentProvider({ children, texts }) {
const consent = useConsent();
return /*#__PURE__*/ _jsx(ConsentContext, {
value: {
...consent,
texts
},
children: children
});
}
export function useConsentContext() {
const ctx = use(ConsentContext);
if (!ctx) {
throw new Error('useConsentContext must be used within ConsentProvider');
}
return ctx;
}
//# sourceMappingURL=ConsentContext.js.map