import React from 'react'; import { WithTranslation } from 'react-i18next'; import { makeStyles } from 'tss-react/mui'; import { translate } from '../../../../base/i18n/functions'; import { withPixelLineHeight } from '../../../../base/styles/functions.web'; import { UPGRADE_OPTIONS_LINK, UPGRADE_OPTIONS_TEXT } from '../../../constants'; const useStyles = makeStyles()(theme => { return { limitContainer: { backgroundColor: theme.palette.warning01, borderRadius: '6px', padding: '8px 16px' }, limitInfo: { color: theme.palette.field01, ...withPixelLineHeight(theme.typography.bodyShortRegular) }, link: { color: theme.palette.field01, fontWeight: 'bold', textDecoration: 'underline' } }; }); /** * Component that displays a message when the dial in limit is reached. * * @param {Function} t - Function which translate strings. * * @returns {ReactElement} */ const DialInLimit: React.FC = ({ t }) => { const { classes } = useStyles(); return (
{ `${t('info.dialInNumber')} ` } { `${t('info.reachedLimit')} `} { `${t('info.upgradeOptions')} ` } { `${UPGRADE_OPTIONS_TEXT}` } .
); }; export default translate(DialInLimit);