import { Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, Stack, ModalFooter, Text, } from '@chakra-ui/react' import { StandardEmbedWindowSettings } from 'components/share/codeSnippets/Container/EmbedSettings' import { IframeEmbedCode } from 'components/share/codeSnippets/Iframe/EmbedCode' import { PublishFirstInfo } from 'components/shared/Info' import { useState } from 'react' import { ModalProps } from '../EmbedButton' export const IframeModal = ({ isPublished, isOpen, onClose }: ModalProps) => { const [inputValues, setInputValues] = useState({ heightLabel: '100%', widthLabel: '100%', }) return ( Iframe {!isPublished && } Paste this anywhere in your HTML code: setInputValues({ ...settings }) } /> ) }