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