/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import React from "react"; import { Button } from "../components/button"; import { Notifications } from "../components/notifications"; import type { NavigateToPortForwards } from "../../common/front-end-routing/routes/cluster/network/port-forwards/navigate-to-port-forwards.injectable"; import type { NotificationsStore } from "../components/notifications/notifications.store"; interface AboutPortForwardingDependencies { navigateToPortForwards: NavigateToPortForwards; hostedClusterId: string; notificationsStore: NotificationsStore; } export const aboutPortForwarding = ({ navigateToPortForwards, hostedClusterId, notificationsStore, }: AboutPortForwardingDependencies) => () => { const notificationId = `port-forward-notification-${hostedClusterId}`; Notifications.info( (
You can manage your port forwards on the Port Forwarding Page.
{msg}