import { styled } from "../../lib/styles/stitches.config"; import type { ComponentProps } from "react"; import type * as Stitches from "@stitches/react"; const RoundedIFrame = styled("iframe", { width: "100%", display: "block", margin: "1em auto", border: "2px solid $kindaLight", borderRadius: "$rounded", }); export type IFrameProps = ComponentProps & { src: string; height: number; width?: number; // defaults to 100% allowScripts?: boolean; noScroll?: boolean; css?: Stitches.CSS; }; const IFrame = ({ src, title, height, width, allowScripts, noScroll, css, ...rest }: IFrameProps) => ( ); export default IFrame;