import { useUnlinkProfile } from "thirdweb/react";
const { data: connectedProfiles, isLoading } = useProfiles({
client: props.client,
});
const { mutate: unlinkProfile } = useUnlinkProfile();
const onClick = () => {
unlinkProfile({
client,
// Select any other profile you want to unlink
profileToUnlink: connectedProfiles[1],
});
};