mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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') + '…'}</>
|
||
|
}
|