projectPerformanceScoreCard.tsx 586 B

1234567891011121314151617181920212223
  1. import {Button} from 'sentry/components/button';
  2. import {t} from 'sentry/locale';
  3. import type {Organization} from 'sentry/types/organization';
  4. import {openUpsellModal} from 'getsentry/actionCreators/modal';
  5. type Props = React.PropsWithChildren<{
  6. organization: Organization;
  7. }>;
  8. function ProjectPerformanceScoreCard({organization}: Props) {
  9. return (
  10. <Button
  11. size="sm"
  12. priority="primary"
  13. onClick={() => openUpsellModal({organization, source: 'project-details'})}
  14. >
  15. {t('Learn More')}
  16. </Button>
  17. );
  18. }
  19. export default ProjectPerformanceScoreCard;