1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import styled from '@emotion/styled';
- import TextCopyInput from 'sentry/components/textCopyInput';
- import {Tooltip} from 'sentry/components/tooltip';
- import {t} from 'sentry/locale';
- import {space} from 'sentry/styles/space';
- type Props = {
- culture?: string;
- filePath?: string | null;
- name?: string;
- publicKeyToken?: string;
- version?: string;
- };
- function Assembly({name, version, culture, publicKeyToken, filePath}: Props) {
- return (
- <AssemblyWrapper>
- <AssemblyInfo>
- <Caption>Assembly:</Caption>
- {name || '-'}
- </AssemblyInfo>
- <AssemblyInfo>
- <Caption>{t('Version')}:</Caption>
- {version || '-'}
- </AssemblyInfo>
- <AssemblyInfo>
- <Caption>{t('Culture')}:</Caption>
- {culture || '-'}
- </AssemblyInfo>
- <AssemblyInfo>
- <Caption>PublicKeyToken:</Caption>
- {publicKeyToken || '-'}
- </AssemblyInfo>
- {filePath && (
- <AssemblyInfo>
- <Caption>{t('Path')}:</Caption>
- <Tooltip title={filePath}>
- <TextCopyInput rtl size="xs">
- {filePath}
- </TextCopyInput>
- </Tooltip>
- </AssemblyInfo>
- )}
- </AssemblyWrapper>
- );
- }
- const AssemblyWrapper = styled('div')`
- font-size: 80%;
- display: flex;
- flex-wrap: wrap;
- color: ${p => p.theme.textColor};
- text-align: center;
- position: relative;
- padding: ${space(0.25)} ${space(3)};
- `;
- const AssemblyInfo = styled('div')`
- display: flex;
- align-items: center;
- margin-right: ${space(2)};
- `;
- const Caption = styled('span')`
- margin-right: 5px;
- font-weight: bold;
- `;
- export {Assembly};
|