import classNames from "classnames"; import { toast } from "sonner"; import { GridPattern } from "./../magicui/grid-pattern"; import { cn } from "../../lib/utils"; function Preview({ html, isResizing, isAiWorking, ref, device, currentTab, iframeRef, }: { html: string; isResizing: boolean; isAiWorking: boolean; ref: React.RefObject; iframeRef?: React.RefObject; device: "desktop" | "mobile"; currentTab: string; }) { return (
{ if (isAiWorking) { e.preventDefault(); e.stopPropagation(); toast.warning("Please wait for the AI to finish working."); } }} >