import {Fragment} from 'react'; import styled from '@emotion/styled'; import {Organization, Project} from 'sentry/types'; import {ImageCandidate} from 'sentry/types/debugImage'; import {INTERNAL_SOURCE} from '../utils'; import StatusTooltip from './status/statusTooltip'; import Actions from './actions'; import Information from './information'; type Props = { baseUrl: string; candidate: ImageCandidate; hasReprocessWarning: boolean; haveCandidatesAtLeastOneAction: boolean; onDelete: (debugFileId: string) => void; organization: Organization; projSlug: Project['slug']; eventDateReceived?: string; }; function Candidate({ candidate, organization, projSlug, baseUrl, haveCandidatesAtLeastOneAction, hasReprocessWarning, onDelete, eventDateReceived, }: Props) { const {source} = candidate; const isInternalSource = source === INTERNAL_SOURCE; return ( {haveCandidatesAtLeastOneAction && ( )} ); } export default Candidate; const Column = styled('div')` display: flex; align-items: center; `; const InformationColumn = styled(Column)` flex-direction: column; align-items: flex-start; `; const ActionsColumn = styled(Column)` justify-content: flex-end; `;