import {Fragment} from 'react'; import styled from '@emotion/styled'; import ExternalLink from 'sentry/components/links/externalLink'; import List from 'sentry/components/list/'; import ListItem from 'sentry/components/list/listItem'; 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 TextCopyInput from 'sentry/components/textCopyInput'; import {t, tct} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import {Organization} from 'sentry/types'; import {trackAnalytics} from 'sentry/utils/analytics'; type Props = { dsn: string; organization: Organization | undefined; projectSlug: string; }; export const steps = ({dsn, projectSlug, organization}: Props): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: (
{tct('Configure your app automatically with the [wizardLink:Sentry wizard].', {
wizardLink: (
,
serverCode:
,
sentryInitCode:
,
}
)}
,
}
)}
,
sentryPropertiesCode:
,
}
)}
,
})}
{tct('Alternatively, you can also [manualSetupLink:set up the SDK manually].', {
manualSetupLink: (
{tct(
"If you already have the configuration for Sentry in your application, and just need this project's ([projectSlug]) DSN, you can find it below:",
{
projectSlug: {projectSlug}
,
}
)}