import normalizeUrl from 'sentry/utils/url/normalizeUrl'; import useOrganization from 'sentry/utils/useOrganization'; import { DomainViewHeader, type Props as HeaderProps, } from 'sentry/views/insights/pages/domainViewHeader'; import { FRONTEND_LANDING_SUB_PATH, FRONTEND_LANDING_TITLE, MODULES, } from 'sentry/views/insights/pages/frontend/settings'; import {DOMAIN_VIEW_BASE_URL} from 'sentry/views/insights/pages/settings'; type Props = { headerTitle: HeaderProps['headerTitle']; breadcrumbs?: HeaderProps['additionalBreadCrumbs']; headerActions?: HeaderProps['additonalHeaderActions']; hideDefaultTabs?: HeaderProps['hideDefaultTabs']; module?: HeaderProps['selectedModule']; tabs?: HeaderProps['tabs']; }; // TODO - add props to append to breadcrumbs and change title export function FrontendHeader({ module, headerActions, headerTitle, breadcrumbs, tabs, hideDefaultTabs, }: Props) { const {slug} = useOrganization(); const frontendBaseUrl = normalizeUrl( `/organizations/${slug}/${DOMAIN_VIEW_BASE_URL}/${FRONTEND_LANDING_SUB_PATH}/` ); return ( ); }