mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 19:26:27 -05:00
a412f3d70e
GitOrigin-RevId: 0f4cc3b4db62efe25ceeff202f305d08ddd73968
17 lines
417 B
TypeScript
17 lines
417 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
|
|
type DefaultMessageProps = {
|
|
className?: string
|
|
style?: React.CSSProperties
|
|
}
|
|
|
|
export function DefaultMessage({ className, style }: DefaultMessageProps) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<>
|
|
<span style={style}>{`${t('generic_something_went_wrong')}. `}</span>
|
|
<span className={className}>{`${t('please_refresh')}`}</span>
|
|
</>
|
|
)
|
|
}
|