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

Method getSlowModeMenuIcon

src/components/ModerationMenuItems.tsx:111–113  ·  view source on GitHub ↗

* Returns the menu icon for a specicic slow mode duration. * @param slowDuration - The slow duration. * @return The icon name.

(slowDuration: SlowModeDuration)

Source from the content-addressed store, hash-verified

109 * @return The icon name.
110 */
111 private getSlowModeMenuIcon(slowDuration: SlowModeDuration) {
112 return _.get(this.props.roomState, 'slowDuration', 0) === slowDuration ? 'tick' : 'blank'
113 }
114}
115
116/**

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected