MCPcopy Create free account
hub / github.com/getsentry/sentry / SentryAppComponentIcon

Function SentryAppComponentIcon

static/app/components/sentryAppComponentIcon.tsx:17–37  ·  view source on GitHub ↗
({sentryAppComponent, size = 20}: Props)

Source from the content-addressed store, hash-verified

15 * (e.g. Issue Linking, Stacktrace Linking)
16 */
17export function SentryAppComponentIcon({sentryAppComponent, size = 20}: Props) {
18 const selectedAvatar = sentryAppComponent.sentryApp?.avatars?.find(
19 ({color}) => color === false
20 );
21 const isDefault = selectedAvatar?.avatarType !== 'upload';
22 const isDisabled = Boolean(sentryAppComponent.error);
23
24 return (
25 <SentryAppAvatarWrapper
26 isDark={ConfigStore.get('theme') === 'dark'}
27 isDefault={isDefault}
28 isDisabled={isDisabled}
29 >
30 <SentryAppAvatar
31 sentryApp={sentryAppComponent.sentryApp}
32 size={size}
33 isColor={false}
34 />
35 </SentryAppAvatarWrapper>
36 );
37}
38
39const SentryAppAvatarWrapper = styled('span')<{
40 isDark: boolean;

Callers

nothing calls this directly

Calls 3

BooleanFunction · 0.85
findMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected