reviewAction.tsx 558 B

123456789101112131415161718192021222324
  1. import ActionLink from 'sentry/components/actions/actionLink';
  2. import {IconIssues} from 'sentry/icons';
  3. import {t} from 'sentry/locale';
  4. type Props = {
  5. onUpdate: (data: {inbox: boolean}) => void;
  6. disabled?: boolean;
  7. };
  8. function ReviewAction({disabled, onUpdate}: Props) {
  9. return (
  10. <ActionLink
  11. type="button"
  12. disabled={disabled}
  13. onAction={() => onUpdate({inbox: false})}
  14. title={t('Mark Reviewed')}
  15. icon={<IconIssues size="xs" />}
  16. >
  17. {t('Mark Reviewed')}
  18. </ActionLink>
  19. );
  20. }
  21. export default ReviewAction;