import { FunctionComponent } from "preact";

type Props = Readonly<{
  pluginUrl: string;
}>;

export const Content: FunctionComponent<Props> = ({ pluginUrl }) => {
  return (
    <div class="oj-web-applayout-max-width oj-flex-item oj-flex">
      {pluginUrl && <iframe src={pluginUrl} className="oj-flex-item"></iframe>}
    </div>
  );
};
