1import { UnavailabilityError } from '@unimodules/core'; 2 3import NotificationChannelGroupManager, { 4 NotificationChannelGroup, 5} from './NotificationChannelGroupManager'; 6 7export default async function getNotificationChannelGroupAsync( 8 groupId: string 9): Promise<NotificationChannelGroup | null> { 10 if (!NotificationChannelGroupManager.getNotificationChannelGroupAsync) { 11 throw new UnavailabilityError('Notifications', 'getNotificationChannelGroupAsync'); 12 } 13 14 return await NotificationChannelGroupManager.getNotificationChannelGroupAsync(groupId); 15} 16