import React from "react";

export interface IframeProps {
  /** 页面地址 */
  url: string;
  /** 页面标题 */
  title?: string;
}

export const Iframe = React.forwardRef<HTMLIFrameElement, IframeProps>(
  ({ url, title, ...props }, ref) => {
    return <iframe ref={ref} src={url} title={title} {...props} />;
  }
);
