π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
'use client';
import { FC, ReactNode, useEffect } from 'react';
import { useVariables } from '@gitroom/react/helpers/variable.context';
import { initializeSentryClient } from '@gitroom/react/sentry/initialize.sentry.client';
export const SentryComponent: FC<{ children: ReactNode }> = ({ children }) => {
const { sentryDsn: dsn, environment } = useVariables();
useEffect(() => {
if (!dsn) {
return;
}
initializeSentryClient(environment, dsn);
}, [dsn]);
// Always render children - don't block the app
return <>{children}</>;
};