2
0
visuddhinanda 2 жил өмнө
parent
commit
67983d3536

+ 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;