import Dialog, { DialogPanel } from "~/components/dialog"; import Notice from "~/components/notice"; import Text from "~/components/text"; import Title from "~/components/title"; interface TransferOwnershipProps { targetUserId: string; targetDisplayName: string; isOpen: boolean; setIsOpen: (isOpen: boolean) => void; } export default function TransferOwnership({ targetUserId, targetDisplayName, isOpen, setIsOpen, }: TransferOwnershipProps) { return ( Transfer ownership to {targetDisplayName}? This will make {targetDisplayName} the new owner of this Headplane instance. You will be demoted to an Admin. This action cannot be easily undone. Only the owner can transfer ownership. After this, you will no longer be able to manage ownership. ); }