import {Fragment} from 'react'; import Feature from 'sentry/components/acl/feature'; import {Alert} from 'sentry/components/alert'; import * as Layout from 'sentry/components/layouts/thirds'; import NoProjectMessage from 'sentry/components/noProjectMessage'; import {DatePageFilter} from 'sentry/components/organizations/datePageFilter'; import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter'; import PageFilterBar from 'sentry/components/organizations/pageFilterBar'; import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container'; import {ProjectPageFilter} from 'sentry/components/organizations/projectPageFilter'; import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip'; import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; import {t} from 'sentry/locale'; import useOrganization from 'sentry/utils/useOrganization'; import { NumberOfPipelinesChart, PipelineDurationChart, TotalTokensUsedChart, } from 'sentry/views/aiMonitoring/aiMonitoringCharts'; import {AIMonitoringOnboarding} from 'sentry/views/aiMonitoring/onboarding'; import {PipelinesTable} from 'sentry/views/aiMonitoring/PipelinesTable'; import {useOnboardingProject} from 'sentry/views/performance/browser/webVitals/utils/useOnboardingProject'; import * as ModuleLayout from 'sentry/views/performance/moduleLayout'; function NoAccessComponent() { return ( {t("You don't have access to this feature")} ); } export default function AiMonitoringPage() { const organization = useOrganization(); const onboardingProject = useOnboardingProject(); const isOnboarding = !!onboardingProject; return ( {t('AI Monitoring')} {isOnboarding ? ( ) : ( )} ); }