import styled from '@emotion/styled'; import Tooltip from 'sentry/components/tooltip'; import space from 'sentry/styles/space'; import {ImageCandidate} from 'sentry/types/debugImage'; import {getStatusTooltipDescription} from '../utils'; import Status from '.'; type Props = { candidate: ImageCandidate; hasReprocessWarning: boolean; }; function StatusTooltip({candidate, hasReprocessWarning}: Props) { const {download} = candidate; const {label, description, disabled} = getStatusTooltipDescription( candidate, hasReprocessWarning ); return ( {description &&
{description}
} ) } disabled={disabled} >
); } export default StatusTooltip; const Title = styled('div')` text-align: left; `; const Label = styled('div')` display: inline-block; margin-bottom: ${space(0.25)}; `;