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