nitro-react/src/api/groups/ToggleFavoriteGroup.ts

9 lines
342 B
TypeScript
Raw Normal View History

2022-03-17 00:05:07 +01:00
import { GroupFavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
import { SendMessageComposer } from '..';
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
{
// new GroupUnfavoriteComposer(group.groupId)
SendMessageComposer(group.favourite ? null : new GroupFavoriteComposer(group.groupId));
}