import dynamic from "next/dynamic";

const DynamicIframe = dynamic(() => import("@/components/DynamicIframe"), {
  ssr: false, // Ensures it runs only on the client
});

const Page = () => {
  const htmlContent = `
    <h1>Hello from Iframe</h1>
    <p>This is dynamic content.</p>
  `;

  return <DynamicIframe htmlContent={htmlContent} />;
};

export default Page;