mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
33 lines
825 B
TypeScript
33 lines
825 B
TypeScript
import React from 'react';
|
|
|
|
import { route } from 'nextjs-routes';
|
|
|
|
import { Button } from '@luxfi/ui/button';
|
|
import { Link } from 'toolkit/next/link';
|
|
|
|
import AppErrorIcon from '../AppErrorIcon';
|
|
import AppErrorTitle from '../AppErrorTitle';
|
|
|
|
interface Props {
|
|
hash?: string;
|
|
}
|
|
|
|
const AppErrorBlockConsensus = ({ hash }: Props) => {
|
|
return (
|
|
<>
|
|
<AppErrorIcon statusCode={ 404 }/>
|
|
<AppErrorTitle title="Block removed due to chain reorganization"/>
|
|
<Link href={ hash ? route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: hash } }) : route({ pathname: '/' }) }>
|
|
<Button
|
|
className="mt-8"
|
|
variant="outline"
|
|
>
|
|
{ hash ? 'View reorg' : 'Back to home' }
|
|
</Button>
|
|
</Link>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default AppErrorBlockConsensus;
|