20 lines
409 B
TypeScript
20 lines
409 B
TypeScript
"use client";
|
|
|
|
interface IframeContainerProps {
|
|
src: string;
|
|
title: string;
|
|
}
|
|
|
|
export function IframeContainer({ src, title }: IframeContainerProps) {
|
|
return (
|
|
<div className="h-[calc(100vh-6rem)] w-full mt-0">
|
|
<iframe
|
|
src={src}
|
|
className="w-full h-full border-0"
|
|
allow="fullscreen"
|
|
title={title}
|
|
style={{ display: 'block' }}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|