new.tsx 606 B

1234567891011121314
  1. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  2. import {BreadcrumbsProvider} from 'sentry/components/workflowEngine/layout/breadcrumbs';
  3. import EditLayout from 'sentry/components/workflowEngine/layout/edit';
  4. import {t} from 'sentry/locale';
  5. export default function NewDetectorLayout({children}: {children: React.ReactNode}) {
  6. return (
  7. <SentryDocumentTitle title={t('New Monitor')} noSuffix>
  8. <BreadcrumbsProvider crumb={{label: t('Monitors'), to: '/monitors'}}>
  9. <EditLayout>{children}</EditLayout>
  10. </BreadcrumbsProvider>
  11. </SentryDocumentTitle>
  12. );
  13. }