headerTabs.tsx 898 B

12345678910111213141516171819202122232425262728
  1. import FeatureBadge from 'app/components/featureBadge';
  2. import * as Layout from 'app/components/layouts/thirds';
  3. import Link from 'app/components/links/link';
  4. import {t} from 'app/locale';
  5. import {Organization} from 'app/types';
  6. type Props = {
  7. organization: Organization;
  8. activeTab: 'projects' | 'teamInsights';
  9. };
  10. function HeaderTabs({organization, activeTab}: Props) {
  11. return (
  12. <Layout.HeaderNavTabs underlined>
  13. <li className={`${activeTab === 'projects' ? 'active' : ''}`}>
  14. <Link to={`/organizations/${organization.slug}/projects/`}>{t('Overview')}</Link>
  15. </li>
  16. <li className={`${activeTab === 'teamInsights' ? 'active' : ''}`}>
  17. <Link to={`/organizations/${organization.slug}/teamInsights/`}>
  18. {t('Reports')}
  19. <FeatureBadge type="alpha" />
  20. </Link>
  21. </li>
  22. </Layout.HeaderNavTabs>
  23. );
  24. }
  25. export default HeaderTabs;