diff --git a/static/app/views/explore/components/attributeBreakdowns/attributeComparisonCTA.tsx b/static/app/views/explore/components/attributeBreakdowns/attributeComparisonCTA.tsx deleted file mode 100644 index 6396fbc6ffe56d..00000000000000 --- a/static/app/views/explore/components/attributeBreakdowns/attributeComparisonCTA.tsx +++ /dev/null @@ -1,132 +0,0 @@ -import React from 'react'; -import styled from '@emotion/styled'; - -import emptyTraceImg from 'sentry-images/spot/performance-empty-trace.svg'; - -import {Flex} from '@sentry/scraps/layout/flex'; -import {Text} from '@sentry/scraps/text'; - -import {Button} from 'sentry/components/core/button'; -import Panel from 'sentry/components/panels/panel'; -import {IconClose} from 'sentry/icons'; -import {t} from 'sentry/locale'; -import {useDebouncedValue} from 'sentry/utils/useDebouncedValue'; -import {useLocalStorageState} from 'sentry/utils/useLocalStorageState'; -import {Tab, useTab} from 'sentry/views/explore/hooks/useTab'; - -import {useChartSelection} from './chartSelectionContext'; - -const PANEL_WIDTH = '400px'; -const ILLUSTRATION_HEIGHT = '120px'; -const LOCAL_STORAGE_KEY = 'explore:attribute-breakdowns-cta-dismissed'; -const CTA_DELAY_MS = 1000; - -export function AttributeComparisonCTA({children}: {children: React.ReactNode}) { - const [tab] = useTab(); - const {chartSelection} = useChartSelection(); - const [isDismissed, setIsDismissed] = useLocalStorageState( - LOCAL_STORAGE_KEY, - false - ); - - const isAttributeBreakdownsTab = tab === Tab.ATTRIBUTE_BREAKDOWNS; - const showCTA = !chartSelection && !isDismissed && isAttributeBreakdownsTab; - - // Adding a delay so the CTA appears after we have switched - // to the attribute breakdowns tab and draws attention - const showDelayed = useDebouncedValue(showCTA, CTA_DELAY_MS); - - return ( - - {children} - {showDelayed && showCTA ? ( - - - - - {t('Examine what sets your selection apart')} - -