visuddhinanda 2 tahun lalu
induk
melakukan
724865f619
1 mengubah file dengan 15 tambahan dan 0 penghapusan
  1. 15 0
      dashboard/src/components/general/ParserError.tsx

+ 15 - 0
dashboard/src/components/general/ParserError.tsx

@@ -0,0 +1,15 @@
+import { Popover } from "antd";
+import { WarningOutlined } from "@ant-design/icons";
+
+interface IWidget {
+  children?: React.ReactNode;
+}
+const ParserErrorWidget = ({ children }: IWidget) => {
+  return (
+    <Popover content={children} placement="bottom">
+      <WarningOutlined style={{ color: "red" }} />
+    </Popover>
+  );
+};
+
+export default ParserErrorWidget;