diff --git a/web/app/components/base/html-preview-button/index.tsx b/web/app/components/base/html-preview-button/index.tsx new file mode 100644 index 0000000000..b56b12f955 --- /dev/null +++ b/web/app/components/base/html-preview-button/index.tsx @@ -0,0 +1,74 @@ +import React from 'react' +import FullScreenModal from '@/app/components/base/fullscreen-modal' +import cn from '@/utils/classnames' +import s from './style.module.css' +import { useTranslation } from 'react-i18next' +import ActionButton from '../action-button' +import Tooltip from '../tooltip' + +type HTMLPreviewBtnProps = { + content: string, + completed?: boolean, +} + +const prefixPreview = 'appOverview.overview.appInfo.preview' + +type CreateIframeModalProps = { + show: boolean, + onClose: () => void, + content: string, +} + +const CreateIframeModal = ({ show, onClose, content }: CreateIframeModalProps) => { + const { t } = useTranslation() + return ( + +