feat(admin): use smart-loading groups for simulations
This commit is contained in:
@@ -63,6 +63,11 @@ export const SMART_LOADING_CHANNEL_GROUPS: readonly SmartLoadingChannelGroup[] =
|
||||
},
|
||||
] as const
|
||||
|
||||
export function getSmartLoadingChannelGroup(groupCode?: string | null) {
|
||||
const normalizedCode = String(groupCode || '').trim().toUpperCase()
|
||||
return SMART_LOADING_CHANNEL_GROUPS.find((group) => group.code === normalizedCode) || null
|
||||
}
|
||||
|
||||
export function resolveSmartLoadingChannelGroup(channelCode?: string | null, channelName?: string | null) {
|
||||
const normalizedCode = String(channelCode || '').trim().toUpperCase()
|
||||
if (normalizedCode) {
|
||||
|
||||
Reference in New Issue
Block a user