2020-11-26 09:22:30 -05:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2023-03-16 08:32:48 -04:00
|
|
|
import { useLocation } from '../../../shared/hooks/use-location'
|
2024-09-25 09:46:02 -04:00
|
|
|
import OLButton from '@/features/ui/components/ol/ol-button'
|
2020-11-26 09:22:30 -05:00
|
|
|
|
|
|
|
function FileTreeError() {
|
|
|
|
const { t } = useTranslation()
|
2023-03-16 08:32:48 -04:00
|
|
|
const { reload: handleClick } = useLocation()
|
2020-11-26 09:22:30 -05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="file-tree-error">
|
|
|
|
<p>{t('generic_something_went_wrong')}</p>
|
|
|
|
<p>{t('please_refresh')}</p>
|
2024-09-25 09:46:02 -04:00
|
|
|
<OLButton variant="primary" onClick={handleClick}>
|
2020-11-26 09:22:30 -05:00
|
|
|
{t('refresh')}
|
2024-09-25 09:46:02 -04:00
|
|
|
</OLButton>
|
2020-11-26 09:22:30 -05:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FileTreeError
|