/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectable } from "@ogre-tools/injectable"; import React from "react"; import navigateToPortForwardsInjectable from "../../common/front-end-routing/routes/cluster/network/port-forwards/navigate-to-port-forwards.injectable"; import { Button } from "../components/button"; import showSuccessNotificationInjectable from "../components/notifications/show-success-notification.injectable"; const aboutPortForwardingInjectable = getInjectable({ id: "about-port-forwarding", instantiate: (di) => { const showSuccessNotification = di.inject(showSuccessNotificationInjectable); const navigateToPortForwards = di.inject(navigateToPortForwardsInjectable); return () => { const removeNotification = showSuccessNotification( (
Port Forwarding

You can manage your port forwards on the Port Forwarding Page.

), { id: "port-forward-notification", timeout: 10_000, }, ); }; }, }); export default aboutPortForwardingInjectable;