mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 06:12:00 +00:00
03e1daa038
Error boundaries for React PDF viewer GitOrigin-RevId: 90052fc183f7ece8125ecfb0410a529cf905c13b
14 lines
304 B
JavaScript
14 lines
304 B
JavaScript
import { useTranslation } from 'react-i18next'
|
|
import Icon from './icon'
|
|
|
|
function LoadingSpinner() {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<div className="loading">
|
|
<Icon type="fw" modifier="refresh" spin />
|
|
{` ${t('loading')}…`}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default LoadingSpinner
|