import styled from '@emotion/styled'; import NotAvailable from 'sentry/components/notAvailable'; import {t} from 'sentry/locale'; import space from 'sentry/styles/space'; import {Image} from 'sentry/types/debugImage'; import Processings from '../debugImage/processings'; import {getImageAddress} from '../utils'; type Props = { image?: Image; }; function GeneralInfo({image}: Props) { const {debug_id, debug_file, code_id, code_file, arch, unwind_status, debug_status} = image ?? {}; const imageAddress = image ? getImageAddress(image) : undefined; return ( {imageAddress ?? } {debug_id ?? } {debug_file ?? } {code_id ?? } {code_file ?? } {arch ?? } {unwind_status || debug_status ? ( ) : ( )} ); } export default GeneralInfo; const Wrapper = styled('div')` display: grid; grid-template-columns: max-content 1fr; `; const Label = styled('div')<{coloredBg?: boolean}>` color: ${p => p.theme.textColor}; padding: ${space(1)} ${space(1.5)} ${space(1)} ${space(1)}; ${p => p.coloredBg && `background-color: ${p.theme.backgroundSecondary};`} `; const Value = styled(Label)` white-space: pre-wrap; word-break: break-all; color: ${p => p.theme.subText}; padding: ${space(1)}; font-family: ${p => p.theme.text.familyMono}; ${p => p.coloredBg && `background-color: ${p.theme.backgroundSecondary};`} `;