import { observer } from "mobx-react"; import React from "react"; import { clusterSettingsURL } from "../+cluster-settings"; import { broadcastMessage } from "../../../common/ipc"; import { Cluster } from "../../../main/cluster"; import { cssNames } from "../../utils"; import { Icon } from "../icon"; interface Props { cluster: Cluster className?: string } export const MainLayoutHeader = observer(({ cluster, className }: Props) => { return (
{cluster.name} { broadcastMessage("renderer:navigate", clusterSettingsURL({ params: { clusterId: cluster.id } })); }} />
); });