mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
467 B
TypeScript
20 lines
467 B
TypeScript
import React from 'react';
|
|
|
|
import { Alert } from '@luxfi/ui/alert';
|
|
import { Link } from 'toolkit/next/link';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
const SocketAlert = ({ className }: Props) => {
|
|
return (
|
|
<Alert status="warning" className={ className }>
|
|
<span className="whitespace-pre">Connection lost, click </span>
|
|
<Link href={ window.document.location.href }>to load newer records</Link>
|
|
</Alert>
|
|
);
|
|
};
|
|
|
|
export default SocketAlert;
|