mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 22:40:50 +01:00
8 lines
355 B
TypeScript
8 lines
355 B
TypeScript
import { GroupFavoriteComposer, GroupUnfavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
|
|
import { SendMessageComposer } from '..';
|
|
|
|
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
|
|
{
|
|
SendMessageComposer(group.favourite ? new GroupUnfavoriteComposer(group.groupId) : new GroupFavoriteComposer(group.groupId));
|
|
}
|