import classNames from "classnames"; import { FaMobileAlt, FaUserCircle } from "react-icons/fa"; import { ChevronDown, LogOut, RefreshCcw, SparkleIcon } from "lucide-react"; import { FaLaptopCode } from "react-icons/fa6"; import { Auth, HtmlHistory } from "../../../utils/types"; import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar"; import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../ui/dropdown-menu"; import { Button } from "../ui/button"; import { MdAdd } from "react-icons/md"; import History from "../history/history"; const DEVICES = [ { name: "desktop", icon: FaLaptopCode, }, { name: "mobile", icon: FaMobileAlt, }, ]; function Footer({ onReset, auth, htmlHistory, setHtml, device, setDevice, iframeRef, }: { onReset: () => void; auth?: Auth; htmlHistory?: HtmlHistory[]; device: "desktop" | "mobile"; setHtml: (html: string) => void; iframeRef?: React.RefObject; setDevice: React.Dispatch>; }) { const handleRefreshIframe = () => { if (iframeRef?.current) { const iframe = iframeRef.current; const content = iframe.srcdoc; iframe.srcdoc = ""; setTimeout(() => { iframe.srcdoc = content; }, 10); } }; return ( ); } export default Footer;