B2B-88: add starter kit structure and elements
This commit is contained in:
17
packages/monitoring/sentry/src/components/provider.tsx
Normal file
17
packages/monitoring/sentry/src/components/provider.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { MonitoringContext } from '@kit/monitoring-core';
|
||||
|
||||
import { SentryMonitoringService } from '../services/sentry-monitoring.service';
|
||||
|
||||
const sentry = new SentryMonitoringService();
|
||||
|
||||
export function SentryProvider({ children }: React.PropsWithChildren) {
|
||||
return <MonitoringProvider>{children}</MonitoringProvider>;
|
||||
}
|
||||
|
||||
function MonitoringProvider(props: React.PropsWithChildren) {
|
||||
return (
|
||||
<MonitoringContext.Provider value={sentry}>
|
||||
{props.children}
|
||||
</MonitoringContext.Provider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user