useRemoveAdmin
Add an additional admin on the smart wallet
Example
const Component = () => {
const { mutate: removeAdmin, isLoading, error } = useRemoveAdmin();
if (error) {
console.error("failed to remove admin", error);
}
return (
<button disabled={isLoading} onClick={() => removeAdmin("0x...")}>
Remove admin
</button>
);
};