import React from "react";
import PlatformFrame from "@app/components/platform-frame/PlatformFrame";
import { useSettings } from "@settings/contexts/SettingsContext";

const UpgradePlan = () => {
  const { initialSettings } = useSettings();
  const siteId = initialSettings?.siteId || sfsyncData.siteId || "";
  const overridePath = siteId
    ? `account-settings/subscriptions/site/${siteId}/upgrade`
    : "account-settings/subscriptions";

  return <PlatformFrame overridePath={overridePath} />;
};

export default UpgradePlan;
