mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 14:30:41 -05:00
ebc04e4a9d
[web] Migrate cancel subscription to React GitOrigin-RevId: 8482fd61894c8011b4c980263ae1d41f396233c6
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
|
|
export default function ActionButtonText({
|
|
inflight,
|
|
buttonText,
|
|
}: {
|
|
inflight: boolean
|
|
buttonText: string
|
|
}) {
|
|
const { t } = useTranslation()
|
|
return <>{!inflight ? buttonText : t('processing_uppercase') + '…'}</>
|
|
}
|