highlightCornerModal.tsx 496 B

12345678910111213141516171819202122232425
  1. import {Fragment} from 'react';
  2. import styled from '@emotion/styled';
  3. import TopRight from 'sentry-images/pattern/highlight-top-right.svg';
  4. type Props = {
  5. children: React.ReactNode;
  6. };
  7. export default function HighlightCornerContainer({children}: Props) {
  8. return (
  9. <Fragment>
  10. <PositionTopRight src={TopRight} />
  11. {children}
  12. </Fragment>
  13. );
  14. }
  15. const PositionTopRight = styled('img')`
  16. position: absolute;
  17. width: 350px;
  18. right: 0;
  19. top: 0;
  20. pointer-events: none;
  21. `;