mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
[web] Migrate cancel subscription to React GitOrigin-RevId: 8482fd61894c8011b4c980263ae1d41f396233c6
13 lines
278 B
TypeScript
13 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') + '…'}</>
|
|
}
|