import React from "react";
import Iframe from "@app/components/iframe/Iframe";
import { usePlatformFrameUrl, PlatformFrameUrlOptions } from "@app/components/platform-frame/usePlatformFrameUrl";

const PlatformFrame: React.FC<PlatformFrameUrlOptions> = (options) => {
  const iframeURL = usePlatformFrameUrl(options);
  return <Iframe iframeURL={iframeURL} />;
};

export default PlatformFrame;
