eventSdk.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import EventDataSection from 'sentry/components/events/eventDataSection';
  2. import Annotated from 'sentry/components/events/meta/annotated';
  3. import {t} from 'sentry/locale';
  4. import {Event} from 'sentry/types/event';
  5. type Props = {
  6. sdk: NonNullable<Event['sdk']>;
  7. };
  8. const EventSdk = ({sdk}: Props) => (
  9. <EventDataSection type="sdk" title={t('SDK')}>
  10. <table className="table key-value">
  11. <tbody>
  12. <tr key="name">
  13. <td className="key">{t('Name')}</td>
  14. <td className="value">
  15. <Annotated object={sdk} objectKey="name">
  16. {value => <pre className="val-string">{value}</pre>}
  17. </Annotated>
  18. </td>
  19. </tr>
  20. <tr key="version">
  21. <td className="key">{t('Version')}</td>
  22. <td className="value">
  23. <Annotated object={sdk} objectKey="version">
  24. {value => <pre className="val-string">{value}</pre>}
  25. </Annotated>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </EventDataSection>
  31. );
  32. export default EventSdk;