visuddhinanda 2 gadi atpakaļ
vecāks
revīzija
67983d3536
1 mainītis faili ar 25 papildinājumiem un 0 dzēšanām
  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;