import React from 'react'; import { LocalizerType } from '../../types/Util'; interface Props { i18n: LocalizerType; showSubtitle?: boolean; } export class AccentText extends React.PureComponent { constructor(props: any) { super(props); } public render() { const { showSubtitle } = this.props; // FIXME find a better way than dangerouslySetInnerHTML to set those two strings in a localized way return (
Begin
your
Session.
{showSubtitle ? (
Ensuring peace of mind, one{' '} session at a time.
) : ( '' )}
); } }