import * as React from "react"; import { StatefulMenu, NestedMenus } from "baseui/menu"; const SSR = "Rendered ->"; const SERVER = "Server ->"; const FILE = [ { label: SERVER }, { label: "Side" }, { label: "Up" }, { label: SSR }, ]; const SERVER_SUB_MENU = [ { label: "DKR130" }, { label: "GKE135" }, { label: "FPF009" }, { label: "GKP399" }, { label: "GPO123" }, { label: "KKC453" }, { label: "ZPS118" }, ]; const SSR_SUB_MENU = [ { label: "Rendered" }, { label: "SSR" }, { label: "(check source!)" }, { label: "And" }, { label: "When" }, { label: "Closed" }, ]; export default function Example() { return ( { if (item.label === SSR) { return ( ); } if (item.label === SERVER) { return ( ); } return undefined; }, }, }, }} /> ); }