ParserError.tsx 365 B

123456789101112131415
  1. import { Popover } from "antd";
  2. import { WarningOutlined } from "@ant-design/icons";
  3. interface IWidget {
  4. children?: React.ReactNode;
  5. }
  6. const ParserErrorWidget = ({ children }: IWidget) => {
  7. return (
  8. <Popover content={children} placement="bottom">
  9. <WarningOutlined style={{ color: "red" }} />
  10. </Popover>
  11. );
  12. };
  13. export default ParserErrorWidget;