stop-on-first-error-badge.tsx 735 B

123456789101112131415161718192021222324252627282930313233
  1. import Tooltip from './tooltip'
  2. type Props = {
  3. placement: string
  4. }
  5. export default function StopOnFirstErrorBadge({ placement }: Props) {
  6. const content = (
  7. <>
  8. We are testing the “Stop on first error” compilation mode.
  9. <br />
  10. Click to give feedback
  11. </>
  12. )
  13. return (
  14. <Tooltip
  15. id="stop-on-first-error-badge"
  16. description={content}
  17. overlayProps={{ placement, delayHide: 100 }}
  18. tooltipProps={{ className: 'tooltip-wide' }}
  19. >
  20. <a
  21. href="https://forms.gle/7M8821o5RDZrFKoF6"
  22. target="_blank"
  23. rel="noopener noreferrer"
  24. className="badge info-badge"
  25. >
  26. <span className="sr-only">{content}</span>
  27. </a>
  28. </Tooltip>
  29. )
  30. }