import ExternalLink from 'sentry/components/links/externalLink'; import {Layout, LayoutProps} from 'sentry/components/onboarding/gettingStartedDoc/layout'; import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDocumentation'; import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step'; import {getUploadSourceMapsStep} from 'sentry/components/onboarding/gettingStartedDoc/utils'; import {t, tct} from 'sentry/locale'; export const steps = ({ sentryInitContent, }: { sentryInitContent?: string; } = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Add the Sentry Electron SDK package as a dependency:'), configurations: [ { language: 'bash', code: ` # Using yarn yarn add @sentry/electron # Using npm npm install --save @sentry/electron `, }, ], }, { type: StepType.CONFIGURE, description: (
{tct(
`You need to call [codeInit:Sentry.init] in the [codeMain:main] process and in every [codeRenderer:renderer] process you spawn.
For more details about configuring the Electron SDK [docsLink:click here].`,
{
codeInit: ,
codeMain:
,
codeRenderer:
,
docsLink: (