mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 22:40:50 +01:00
9 lines
342 B
TypeScript
9 lines
342 B
TypeScript
|
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));
|
||
|
}
|