File size: 550 Bytes
d092f57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { FC } from "react"
import IconLoading from "../icon/IconLoading"
import Alert, { AlertProps } from "./Alert"
import styles from "./Loading.module.css"
import classNames from "classnames"

const ConnectingAlert: FC<AlertProps> = ({
  className = "",
  canClose = false,
}) => {
  return (
    <Alert canClose={canClose} className={classNames("cursor-wait", className)}>
      <IconLoading className={"hide-below-sm animate-spin"} />
      <div className={styles.loading}>Connecting ...</div>
    </Alert>
  )
}

export default ConnectingAlert