diff options
Diffstat (limited to 'src/components/ErrorBoundaryFallback.tsx')
| -rw-r--r-- | src/components/ErrorBoundaryFallback.tsx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/components/ErrorBoundaryFallback.tsx b/src/components/ErrorBoundaryFallback.tsx deleted file mode 100644 index 9f41d91..0000000 --- a/src/components/ErrorBoundaryFallback.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react'; - -import s0 from './ErrorBoundaryFallback.module.scss'; -import SvgGithub from './SvgGithub'; -import SvgYacd from './SvgYacd'; -const yacdRepoIssueUrl = 'https://github.com/metacubex/yacd'; - -type Props = { - message?: string; - detail?: string; -}; - -function ErrorBoundaryFallback({ message, detail }: Props) { - return ( - <div className={s0.root}> - <div className={s0.yacd}> - <SvgYacd width={150} height={150} /> - </div> - {message ? <h1>{message}</h1> : null} - {detail ? <p>{detail}</p> : null} - <p> - <a className={s0.link} href={yacdRepoIssueUrl}> - <SvgGithub width={16} height={16} /> - metacubex/yacd - </a> - </p> - </div> - ); -} - -export default ErrorBoundaryFallback; |
