1234567891011121314151617181920212223242526272829 |
- import ActionLink from 'sentry/components/actions/actionLink';
- import type {TooltipProps} from 'sentry/components/tooltip';
- import {IconIssues} from 'sentry/icons';
- import {t} from 'sentry/locale';
- import type {IssueUpdateData} from 'sentry/views/issueList/types';
- type Props = {
- onUpdate: (data: IssueUpdateData) => void;
- disabled?: boolean;
- tooltip?: string;
- tooltipProps?: Omit<TooltipProps, 'children' | 'title' | 'skipWrapper'>;
- };
- function ReviewAction({disabled, onUpdate, tooltipProps, tooltip}: Props) {
- return (
- <ActionLink
- type="button"
- disabled={disabled}
- onAction={() => onUpdate({inbox: false})}
- icon={<IconIssues size="xs" />}
- title={tooltip}
- tooltipProps={tooltipProps}
- >
- {t('Mark Reviewed')}
- </ActionLink>
- );
- }
- export default ReviewAction;
|