overleaf/services/web/frontend/js/features/subscription/components/dashboard/action-button-text.tsx

13 lines
278 B
TypeScript
Raw Normal View History

import { useTranslation } from 'react-i18next'
export default function ActionButtonText({
inflight,
buttonText,
}: {
inflight: boolean
buttonText: string
}) {
const { t } = useTranslation()
return <>{!inflight ? buttonText : t('processing_uppercase') + '…'}</>
}