Initial commit: breakpilot-compliance - Compliance SDK Platform
Services: Admin-Compliance, Backend-Compliance, AI-Compliance-SDK, Consent-SDK, Developer-Portal, PCA-Platform, DSMS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
'use client';
|
||||
|
||||
import { ComplianceProvider } from '@breakpilot/compliance-sdk-react';
|
||||
|
||||
export function Providers({ children }: { children: React.ReactNode }) {
|
||||
const apiEndpoint = process.env.NEXT_PUBLIC_API_ENDPOINT || 'http://localhost:8080/api/v1';
|
||||
const apiKey = process.env.NEXT_PUBLIC_API_KEY || '';
|
||||
const tenantId = process.env.NEXT_PUBLIC_TENANT_ID || 'default';
|
||||
|
||||
return (
|
||||
<ComplianceProvider
|
||||
apiEndpoint={apiEndpoint}
|
||||
apiKey={apiKey}
|
||||
tenantId={tenantId}
|
||||
options={{
|
||||
autoLoadState: true,
|
||||
persistState: true,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</ComplianceProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user