ChatTopBarMenu

The 3-dot menu button + its dropdown that lives in the chat top bar's actions slot. Self-contained: owns its own expanded state, builds the menu using the theme colors, and writes the selected index back into itemMenu for the host composable to dispatch.

Item index 1 (Cancel chat) is rendered in red; everything else uses the theme-aware readable text color. The host is expected to handle the actual actions for indexes 0 and 1; indexes 2+ are typically routed through HandleLocalDevMenuItem.

Parameters

itemMenu

Backing state for the currently-selected menu index. Set to the chosen index when the user taps an item; reset to -1 by the host once the action has been processed.

menuItems

The labels to display, in order. Build with localDevMenuItems() + your host-specific entries (e.g. Settings, Cancel).