visuddhinanda 2 лет назад
Родитель
Сommit
67983d3536
1 измененных файлов с 25 добавлено и 0 удалено
  1. 25 0
      dashboard/src/components/general/NetStatus.tsx

+ 25 - 0
dashboard/src/components/general/NetStatus.tsx

@@ -0,0 +1,25 @@
+import { Button } from "antd";
+import { CloudOutlined } from "@ant-design/icons";
+import { useState } from "react";
+
+interface IWidget {
+  style?: React.CSSProperties;
+}
+const Widget = ({ style }: IWidget) => {
+  const [loading, setLoading] = useState(false);
+  const [label, setLabel] = useState("online");
+  return (
+    <>
+      <Button
+        style={style}
+        type="text"
+        loading={loading}
+        icon={<CloudOutlined />}
+      >
+        {label}
+      </Button>
+    </>
+  );
+};
+
+export default Widget;