Files

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;