import { palette2, styled } from '@ringcentral/juno'; import React from 'react'; import i18n, { type I18nKey } from './i18n'; import styles from './styles.scss'; type TabTitleProps = { type: I18nKey; currentLocale: string; active?: boolean; }; type StyledTitleProps = { $active: boolean }; const StyledTitle = styled.div` color: ${({ $active }) => $active && palette2('tab', 'selected')}; `; export const TabTitle: React.FC = ({ type, currentLocale, active, }) => { return ( // @ts-expect-error TS(2322): Type 'boolean | undefined' is not assignable to ty... Remove this comment to see the full error message {i18n.getString(type, currentLocale)} ); };