summaryrefslogtreecommitdiff
path: root/src/components/ErrorBoundaryFallback.js
blob: 295d45881fb55aaa212ad28145b08a8a4429e6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react';
import Icon from 'c/Icon';
import SvgYacd from './SvgYacd';
import github from 's/github.svg';

import s0 from './ErrorBoundaryFallback.module.scss';
const yacdRepoIssueUrl = 'https://github.com/haishanh/yacd/issues';

function ErrorBoundaryFallback() {
  return (
    <div className={s0.root}>
      <div className={s0.yacd}>
        <SvgYacd width={150} height={150} />
      </div>
      <h1>Oops, something went wrong!</h1>
      <p>
        If you think this is a bug, reporting this at{' '}
        <a className={s0.link} href={yacdRepoIssueUrl}>
          <Icon id={github.id} width={16} height={16} />
          haishanh/yacd
        </a>
      </p>
    </div>
  );
}

export default ErrorBoundaryFallback;