feat: enhance channel options with tips and descriptions for better user guidance

This commit is contained in:
JustSong
2025-02-09 12:03:31 +08:00
parent 3e3b8230ac
commit 4375246e24
4 changed files with 94 additions and 70 deletions

View File

@@ -0,0 +1,13 @@
import {CHANNEL_OPTIONS} from '../constants';
let channelMap = undefined;
export function getChannelOption(channelId) {
if (channelMap === undefined) {
channelMap = {};
CHANNEL_OPTIONS.forEach((option) => {
channelMap[option.key] = option;
});
}
return channelMap[channelId];
}