import React, { useEffect, useState } from "react"; import "./css/iframe.css"; import { useTheme } from "@/contexts/ThemeContext"; import { PageType } from "@/components/Sidebar"; interface XingdongTyPageProps { title: string; category: string; subCategory: string; onNavigate: (page: PageType) => void; } const TYURL = import.meta.env.VITE_AIPI_B2ACTOR_URL || ""; const XingdongTyPage: React.FC = ({ onNavigate }) => { const { theme } = useTheme(); const isDark = theme === "dark"; const [iframeUrl, setIframeUrl] = useState(""); useEffect(() => { initIframeUrl(); }, []); const initIframeUrl = () => { const url = `${TYURL}/fromB/toPage?defaultPage=iframeXdty`; console.log({ iframeUrl: url }); setIframeUrl(url); }; return (
); }; export default XingdongTyPage;