Skip to main content
Version: v4

Banned Members

Overview

CometChatBannedMembers is a Component that displays all the users who have been restricted or prohibited from participating in specific groups or conversations. When the user is banned, they are no longer able to access or engage with the content and discussions within the banned group. Group administrators or owners have the authority to ban members from specific groups they manage. They can review user activity, monitor behavior, and take appropriate actions, including banning users when necessary.

Image

Usage

Integration

The following code snippet illustrates how you can directly incorporate the Banned Members component into your Application.


import { CometChat } from '@cometchat/chat-sdk-javascript';
import { CometChatBannedMembers } from '@cometchat/chat-uikit-react'
import React from 'react'

const BannedMembersDemo = () => {

const [chatGroup, setChatGroup] = React.useState<CometChat.Group | undefined>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
})
}, []);
return (
<>
{
chatGroup &&
<CometChatBannedMembers
group={chatGroup}
/>
}
</>
)
}

export default BannedMembersDemo;


Actions

Actions dictate how a component functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the component to fit your specific needs.

1. onSelect

The onSelect action is activated when you select the done icon while in selection mode. This returns a list of all the banned members that you have selected.

This action does not come with any predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs using the following code snippet.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
function handleOnSelect(
bannedMember: CometChat.GroupMember,
selected: boolean
): void {
console.log(bannedMember);
//your custom onSelect actions
}
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} onSelect={handleOnSelect} />
)}
</>
);
};

export default BannedMembersDemo;
2. onItemClick

The OnItemClick event is activated when you click on the Banned Members List item. This action does not come with any predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs using the following code snippet.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
function handleOnItemClick(bannedMember: CometChat.GroupMember): void {
console.log(bannedMember);
//Your Custom on item click actions
}
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
onItemClick={handleOnItemClick}
/>
)}
</>
);
};

export default BannedMembersDemo;
3. OnBack

OnBack is triggered when you click on the back button of the Banned Members component. You can override this action using the following code snippet.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
function handleOnBack(): void {
//Your Custom onBack actions
}
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} onBack={handleOnBack} />
)}
</>
);
};

export default BannedMembersDemo;
4. onClose

onClose is triggered when you click on the close button of the Banned Members component. You can override this action using the following code snippet.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
function handleOnClose(): void {
//Your Custom onClose actions
}
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} onClose={handleOnClose} />
)}
</>
);
};

export default BannedMembersDemo;
5. onError

This action doesn't change the behavior of the component but rather listens for any errors that occur in the Banned Members component.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
function handleOnError(error: CometChat.CometChatException): void {
//Your Custom onError actionssss
}
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} onError={handleOnError} />
)}
</>
);
};

export default BannedMembersDemo;

Filters

Filters allow you to customize the data displayed in a list within a Component. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders of ChatSDK.

1. BannedMembersRequestBuilder

The BannedMembersRequestBuilder enables you to filter and customize the Banned Members list based on available parameters in BannedMembersRequestBuilder. This feature allows you to create more specific and targeted queries when fetching banned members. The following are the parameters available in BannedMembersRequestBuilder

MethodsTypeDescription
setLimitnumbersets the number of banned members that can be fetched in a single request, suitable for pagination
setSearchKeywordStringused for fetching banned members matching the passed string
setScopesArray<String>used for fetching banned members based on multiple scopes

Example

In the example below, we are applying a filter to the banned members by setting the limit to 2 and setting the scope to show only the moderator.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
bannedMembersRequestBuilder={new CometChat.BannedMembersRequestBuilder(
"guid"
)
.setLimit(2)
.setScopes(["moderator"])}
/>
)}
</>
);
};

export default BannedMembersDemo;
2. SearchRequestBuilder

The SearchRequestBuilder uses BannedMembersRequestBuilder enables you to filter and customize the search list based on available parameters in BannedMembersRequestBuilder. This feature allows you to keep uniformity between the displayed Banned Members list and searched Banned Members.

Example

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
searchRequestBuilder={new CometChat.BannedMembersRequestBuilder(
"guid"
)
.setLimit(2)
.setSearchKeyword("**")}
/>
)}
</>
);
};

export default BannedMembersDemo;

Events

Events are emitted by a Component. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.

The Banned Members component does not produce any events.


Customization

To fit your app's design requirements, you can customize the appearance of the Groups component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.

Style

Using Style you can customize the look and feel of the component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.

1. BannedMembers Style

You can set the BannedMembersStyle to the Banned Members Component to customize the styling.

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import {
CometChatBannedMembers,
BannedMembersStyle,
} from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const bannedMemberStyle = new BannedMembersStyle({
background: "#d6b9fa",
titleTextColor: "#ffffff",
separatorColor: "#6d1fcf",
onlineStatusColor: "#b1f029",
});
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
bannedMemberStyle={bannedMemberStyle}
/>
)}
</>
);
};

export default BannedMembersDemo;

List of properties exposed by BannedMembersStyle

PropertyDescriptionCode
borderUsed to set borderborder?: string,
borderRadiusUsed to set border radiusborderRadius?: string;
backgroundUsed to set background colourbackground?: string;
heightUsed to set heightheight?: string;
widthUsed to set widthwidth?: string;
titleTextFontUsed to set title text fonttitleTextFont?: string,
titleTextColorUsed to set title text colortitleTextColor?: string;
searchPlaceholderTextFontUsed to set search placeholder fontsearchPlaceholderTextFont?: string;
searchPlaceholderTextColorUsed to set search placeholder colorsearchPlaceholderTextColor?: string;
searchTextFontUsed to set search text fontsearchTextFont?: string;
searchTextColorUsed to set search text colorsearchTextColor?: string;
emptyStateTextFontUsed to set empty state text fontemptyStateTextFont?: string;
emptyStateTextColorUsed to set empty state text coloremptyStateTextColor?: string;
errorStateTextFontUsed to set error state text fonterrorStateTextFont?: string;
errorStateTextColorUsed to set error state text colorerrorStateTextColor?: string;
loadingIconTintUsed to set loading icon tintloadingIconTint?: string;
searchIconTintUsed to set search icon tintsearchIconTint?: string;
searchBorderUsed to set search bordersearchBorder?: string;
searchBorderRadiusUsed to set search border radiussearchBorderRadius?: string;
searchBackgroundUsed to set search background colorsearchBackground?: string;
onlineStatusColorUsed to set online status coloronlineStatusColor?: string;
separatorColorUsed to set separator colorseparatorColor?: string;
boxShadowUsed to set box shadowboxShadow?: string;
backButtonIconTintUsed to set back button icon tintbackButtonIconTint?: string;
closeButtonIconTintUsed to set close button icon tintcloseButtonIconTint?: string;
unbanIconTintUsed to set unban icon tintunbanIconTint?: string;
paddingUsed to set paddingpadding?: string;
2. Avatar Style

To apply customized styles to the Avatar component in the Banned Members Component, you can use the following code snippet. For further insights on Avatar Styles refer

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import {
CometChatBannedMembers,
AvatarStyle,
} from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const avatarStyle = new AvatarStyle({
backgroundColor: "#cdc2ff",
border: "2px solid #6745ff",
borderRadius: "10px",
outerViewBorderColor: "#ca45ff",
outerViewBorderRadius: "5px",
nameTextColor: "#4554ff",
});
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} avatarStyle={avatarStyle} />
)}
</>
);
};

export default BannedMembersDemo;
3. LisItem Style

To apply customized styles to the ListItemStyle component in the Banned Members Component, you can use the following code snippet. For further insights on ListItemStyle Styles refer

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import {
CometChatBannedMembers,
ListItemStyle,
} from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const listItemStyle = new ListItemStyle({
width: "100%",
height: "100%",
border: "2px solid #cdc2ff",
});
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
listItemStyle={listItemStyle}
/>
)}
</>
);
};

export default BannedMembersDemo;
4. StatusIndicator Style

To apply customized styles to the Status Indicator component in the Banned Members Component, You can use the following code snippet. For further insights on Status Indicator Styles refer

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const statusIndicatorStyle = {
background: "#db35de",
height: "10px",
width: "10px",
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
statusIndicatorStyle={statusIndicatorStyle}
/>
)}
</>
);
};

export default BannedMembersDemo;

Functionality

These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements.

BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
title="Your Custom Title"
titleAlignment={TitleAlignment.left}
unbanIconURL="Your Custom Unban Icon URL"
/>
)}
</>
);
};

export default BannedMembersDemo;

Default:

Image

Custom:

Image

Below is a list of customizations along with corresponding code snippets

PropertyDescriptionCode
title report Used to set title in the app headingtitle="Your Custom Title"
errorStateText report Used to set a custom text response when some error occurs on fetching the list of banned memberserrorStateText="your custom error state text"
emptyStateText report Used to set a custom text response when fetching the banned members has returned an empty listemptyStateText="your custom empty state text"
searchPlaceholder report Used to set custom search placeholder textsearchPlaceholder='Custom Search PlaceHolder'
unbanIconURLUsed to set the Unban button Icon in the banned user listsunbanIconURL='Your Custom Unban Icon URL'
searchIconURLUsed to set search Icon in the search fieldsearchIconURL="Your Custom search icon"
loadingIconURLUsed to set loading IconloadingIconURL="your custom loading icon url"
closeButtonIconURLUsed to set close button IconcloseButtonIconURL="your custom close icon url"
backButtonIconURLUsed to set the back button IconbackButtonIconURL='Your Custom back Icon'
hideErrorUsed to hide error on fetching banned membershideError={true}
hideSearchUsed to toggle visibility for search boxhideSearch={true}"
hideSeparatorUsed to hide the divider separating the banned member itemshideSeparator={true}
disableUsersPresenceUsed to toggle functionality to show user's presencedisableUsersPresence={true}
showBackButtonHides / shows the back button as per the boolean valueshowBackButton={true}
selectionModeset the number of banned members that can be selected, SelectionMode can be single, multiple or none.selectionMode={SelectionMode.multiple}
titleAlignmentAlignment of the heading text for the componenttitleAlignment={TitleAlignment.center}
group report Used to pass group object of which group members will be showngroup={chatGroup}

Advance

For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.


ListItemView

With this property, you can assign a custom ListItem to the Banned Members Component.

listItemView = { getListItemView };

Example

Default:

Image

Custom:

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getListItemView = (bannedMember: CometChat.GroupMember) => {
return (
<div
style={{
display: "flex",
alignItems: "left",
padding: "10px",
border: "2px solid #e9baff",
borderRadius: "20px",
background: "#6e2bd9",
}}
>
<cometchat-avatar
image={bannedMember.getAvatar()}
name={bannedMember.getName()}
/>

<div style={{ display: "flex", paddingLeft: "10px" }}>
<div
style={{ fontWeight: "bold", color: "#ffffff", fontSize: "14px" }}
>
{bannedMember.getName()}
<div
style={{ color: "#ffffff", fontSize: "10px", textAlign: "left" }}
>
{bannedMember.getStatus()}
</div>
</div>
</div>
</div>
);
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
listItemView={getListItemView}
/>
)}
</>
);
};

export default BannedMembersDemo;

SubtitleView

You can customize the subtitle view for each banned members to meet your requirements

subtitleView = { getSubtitleView };

Default:

Image

Custom:

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getSubtitleView = (
bannedMember: CometChat.GroupMember
): JSX.Element => {
function formatTime(timestamp: number) {
const date = new Date(timestamp * 1000);
return date.toLocaleString();
}
if (bannedMember instanceof CometChat.GroupMember) {
return (
<div
style={{
display: "flex",
alignItems: "left",
padding: "2px",
fontSize: "10px",
}}
>
<div style={{ color: "gray" }}>
Last Active At: {formatTime(bannedMember.getLastActiveAt())}
</div>
</div>
);
} else {
return <></>;
}
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
subtitleView={getSubtitleView}
/>
)}
</>
);
};

export default BannedMembersDemo;

LoadingStateView

You can set a custom loader view using loadingStateView to match the loading view of your app.

loadingStateView={getLoadingStateView()}

Default:

Image

Custom:

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import {
CometChatBannedMembers,
LoaderStyle,
} from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getLoadingStateView = () => {
const getLoaderStyle = new LoaderStyle({
iconTint: "#890aff",
background: "transparent",
height: "100vh",
width: "100vw",
});

return (
<cometchat-loader
iconURL="icon"
loaderStyle={JSON.stringify(getLoaderStyle)}
></cometchat-loader>
);
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
loadingStateView={getLoadingStateView()}
/>
)}
</>
);
};

export default BannedMembersDemo;

EmptyStateView

You can set a custom EmptyStateView using emptyStateView to match the empty view of your app.

emptyStateView={getEmptyStateView()}

Default:

Image

Custom:

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getEmptyStateView = () => {
return (
<div style={{ color: "#d6cfff", fontSize: "30px", font: "bold" }}>
Your Custom Empty State
</div>
);
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
emptyStateView={getEmptyStateView()}
/>
)}
</>
);
};

export default BannedMembersDemo;

ErrorStateView

You can set a custom ErrorStateView using errorStateView to match the error view of your app.

errorSateView={getErrorStateView()}

Default:

Image

Custom:

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getErrorStateView = () => {
return (
<div style={{ height: "100vh", width: "100vw" }}>
<img
src="image"
alt="error icon"
style={{
height: "100px",
width: "100px",
marginTop: "250px",
justifyContent: "center",
}}
></img>
</div>
);
};
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
errorStateView={getErrorStateView()}
/>
)}
</>
);
};

export default BannedMembersDemo;

You can set the Custom Menu view to add more options to the Banned Members component.

menus={getMenus()}
Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import { CometChatBannedMembers } from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
const getMenus = () => {
const handleReload = () => {
window.location.reload();
};
const getButtonStyle = () => {
return {
height: "20px",
width: "20px",
border: "none",
borderRadius: "0",
background: "transparent",
buttonIconTint: "#7E57C2",
};
};
return (
<div style={{ marginRight: "20px" }}>
<cometchat-button
iconURL="icon"
buttonStyle={JSON.stringify(getButtonStyle())}
onClick={handleReload}
>
{" "}
</cometchat-button>
</div>
);
};
return (
<>
{chatGroup && (
<CometChatBannedMembers group={chatGroup} menus={getMenus()} />
)}
</>
);
};

export default BannedMembersDemo;

Options

You can set the Custom options to the Banned Members component.

Image
BannedMembersDemo.tsx
import { CometChat } from "@cometchat/chat-sdk-javascript";
import {
CometChatBannedMembers,
CometChatOption,
} from "@cometchat/chat-uikit-react";
import React from "react";

const BannedMembersDemo = () => {
const [chatGroup, setChatGroup] = React.useState<
CometChat.Group | undefined
>();

React.useEffect(() => {
CometChat.getGroup("uid").then((group) => {
setChatGroup(group);
});
}, []);
return (
<>
{chatGroup && (
<CometChatBannedMembers
group={chatGroup}
options={(bannedMember: CometChat.GroupMember) => {
const customOptions = [
new CometChatOption({
id: "1",
title: "Title",
iconURL: "icon",
backgroundColor: "transparent",
onClick: () => {
console.log("Custom option clicked:", bannedMember);
},
iconTint: "#890aff",
titleColor: "blue",
}),
];
return customOptions;
}}
/>
)}
</>
);
};

export default BannedMembersDemo;