MCPcopy Create free account
hub / github.com/HiDeoo/YaTA / getStateMenuIcon

Method getStateMenuIcon

src/components/ModerationMenuItems.tsx:102–104  ·  view source on GitHub ↗

* Returns the menu icon for a specicic room state key. * @param key - The key. * @return The icon name.

(key: keyof SerializedRoomState)

Source from the content-addressed store, hash-verified

100 * @return The icon name.
101 */
102 private getStateMenuIcon(key: keyof SerializedRoomState) {
103 return _.get(this.props.roomState, key, false) ? 'tick' : 'blank'
104 }
105
106 /**
107 * Returns the menu icon for a specicic slow mode duration.

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected