import React from 'react'

export interface IFrameProps {
    iframe: string
}

const IFrame = ({
    iframe
}: IFrameProps) => {
    return (
        <>
            <style>
                {`
            iframe {
                width: 100%;
                min-height: 24rem;
            }
            `}
            </style>
            <div className='w-full rounded-sm' dangerouslySetInnerHTML={{ __html: iframe }} />
        </>

    )
}

export default IFrame