memento-dev/app/components/common/Iframe.tsx

20 lines
357 B
TypeScript

import clsx from "clsx";
type IframeProps = {
src: string;
width?: string;
height?: string;
className?: string;
};
export function Iframe(props: IframeProps) {
return (
<iframe
src={props.src}
className={clsx("max-w-full pointer-events-none", props.className)}
width={props.width}
height={props.height}
/>
);
}