eventTitleError.tsx 787 B

12345678910111213141516171819202122232425262728293031323334
  1. import styled from '@emotion/styled';
  2. import {t} from 'sentry/locale';
  3. import space from 'sentry/styles/space';
  4. function EventTitleError() {
  5. return (
  6. <Wrapper>
  7. <Title>{t('<unknown>')}</Title>
  8. <ErrorMessage>{t('There was an error rendering the title')}</ErrorMessage>
  9. </Wrapper>
  10. );
  11. }
  12. export default EventTitleError;
  13. const Wrapper = styled('span')`
  14. display: flex;
  15. flex-wrap: wrap;
  16. `;
  17. const Title = styled('span')`
  18. margin-right: ${space(0.5)};
  19. `;
  20. const ErrorMessage = styled('span')`
  21. color: ${p => p.theme.alert.error.iconColor};
  22. background: ${p => p.theme.alert.error.backgroundLight};
  23. font-size: ${p => p.theme.fontSizeMedium};
  24. padding: 0 ${space(0.5)};
  25. border-radius: ${p => p.theme.borderRadius};
  26. display: flex;
  27. align-items: center;
  28. `;