import React from 'react'; import { DATADOG, SENTRY, STACKDRIVER } from 'Types/session/stackEvent'; import JsonViewer from 'Components/Session_/StackEvents/UserEvent/JsonViewer'; import Sentry from 'Components/Session_/StackEvents/UserEvent/Sentry'; import { useTranslation } from 'react-i18next'; interface Props { event: any; } function StackEventModal(props: Props) { const { t } = useTranslation(); const { event } = props; const renderPopupContent = () => { const { source, payload, name } = event; switch (source) { case SENTRY: return ; case DATADOG: return ( ); case STACKDRIVER: return ( ); default: return ( ); } }; return (
{t('Stack Event')}
{renderPopupContent()}
); } export default StackEventModal;