import clsx from "clsx"; import type { ComponentPropsWithoutRef } from "react"; import styles from "./IFrame.module.css"; export type IFrameProps = ComponentPropsWithoutRef<"iframe"> & { src: string; height: number; width?: number; // defaults to 100% allowScripts?: boolean; noScroll?: boolean; }; const IFrame = ({ src, title, height, width, allowScripts, noScroll, className, style, ...rest }: IFrameProps) => { return (