import { useUnlinkProfile } from "thirdweb/react";
const { mutate: unlinkProfile } = useUnlinkProfile();
const onClick = () => {
unlinkProfile({
client,
// Select the profile you want to unlink
profileToUnlink: connectedProfiles[0],
allowAccountDeletion: true, // This will delete the account if it's the last profile linked to the account
});
};