import Alert from 'sentry/components/alert'; import {Button} from 'sentry/components/button'; import {IconClose} from 'sentry/icons'; import {t, tct} from 'sentry/locale'; import {useLocalStorageState} from 'sentry/utils/useLocalStorageState'; export function TraceUXChangeAlert() { const [dismiss, setDismissed] = useLocalStorageState('trace-view-dismissed', false); if (dismiss) { return null; } return ( } onClick={() => setDismissed(true)} /> } > {tct( 'Events now provide richer context by linking directly inside traces. Read [why] we are doing this and what it enables.', { why: ( {t('why')} ), } )} ); }