cronsFeedbackButton.tsx 678 B

1234567891011121314151617181920212223242526
  1. import {Button} from 'sentry/components/button';
  2. import {FeedbackModal} from 'sentry/components/feedback/widget/feedbackModal';
  3. import {IconMegaphone} from 'sentry/icons/iconMegaphone';
  4. const CRONS_FEEDBACK_NAME = 'crons';
  5. function CronsFeedbackButton() {
  6. const title = 'Give Feedback';
  7. return (
  8. <FeedbackModal
  9. title={title}
  10. type={CRONS_FEEDBACK_NAME}
  11. sendButtonText="Send Feedback"
  12. descriptionPlaceholder="What did you expect?"
  13. >
  14. {({showModal}) => (
  15. <Button size="sm" icon={<IconMegaphone />} onClick={showModal}>
  16. {title}
  17. </Button>
  18. )}
  19. </FeedbackModal>
  20. );
  21. }
  22. export default CronsFeedbackButton;