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

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

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

export default ReactivateSubscription;
