file-tree-error.tsx 556 B

1234567891011121314151617181920
  1. import { useTranslation } from 'react-i18next'
  2. import { useLocation } from '../../../shared/hooks/use-location'
  3. import OLButton from '@/shared/components/ol/ol-button'
  4. function FileTreeError() {
  5. const { t } = useTranslation()
  6. const { reload: handleClick } = useLocation()
  7. return (
  8. <div className="file-tree-error">
  9. <p>{t('generic_something_went_wrong')}</p>
  10. <p>{t('please_refresh')}</p>
  11. <OLButton variant="primary" onClick={handleClick}>
  12. {t('refresh')}
  13. </OLButton>
  14. </div>
  15. )
  16. }
  17. export default FileTreeError