template.tsx 613 B

123456789101112131415161718192021222324
  1. import {t} from 'sentry/locale';
  2. import {Frame} from 'sentry/types';
  3. import {Event} from 'sentry/types/event';
  4. import EventDataSection from '../../events/eventDataSection';
  5. import Line from './frame/line';
  6. type Props = {
  7. data: Frame;
  8. event: Event;
  9. type: string;
  10. };
  11. const TemplateInterface = ({type, data, event}: Props) => (
  12. <EventDataSection type={type} title={t('Template')}>
  13. <div className="traceback no-exception">
  14. <ul>
  15. <Line data={data} event={event} registers={{}} components={[]} isExpanded />
  16. </ul>
  17. </div>
  18. </EventDataSection>
  19. );
  20. export default TemplateInterface;