import React from 'react'; import styled from '@emotion/styled'; import { useTranslation } from 'react-i18next'; import Text from '../../muiComponents/Text'; import { Theme } from '../../design-tokens/theme'; import { DeveloperType } from './types'; interface Props { type: DeveloperType; } const DevelopersTitle: React.FC = ({ type }) => { const { t } = useTranslation(); switch (type) { case DeveloperType.CONTRIBUTORS: return {t('sidebar.contributors.title')}; case DeveloperType.MAINTAINERS: return {t('sidebar.maintainers.title')}; return null; } }; export default DevelopersTitle; const StyledText = styled(Text)<{ theme?: Theme }>(({ theme }) => ({ fontWeight: theme && theme.fontWeight.bold, marginBottom: '10px', }));