reviewAction.tsx 760 B

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