import { RcLink } from '@ringcentral/juno'; import React from 'react'; import type { EulaProps } from './Eula.interface'; import i18n from './i18n'; export const Eula: React.FC = ({ currentLocale, className, link = 'https://www.ringcentral.com/legal/eulatos.html', dataSign, onClick, label, useShortLabel, }) => { const onClickHandler = React.useMemo( // @ts-expect-error TS(2322): Type '((e: MouseEvent) => voi... Remove this comment to see the full error message () => (onClick ? (e) => onClick(e, link) : null), [onClick, link], ); return ( {label ?? i18n.getString(useShortLabel ? 'eulaAbbr' : 'eula', currentLocale)} ); };