'use client' import { Fragment } from 'react' import { Dialog, Transition } from '@headlessui/react' import { ExclamationTriangleIcon } from '@heroicons/react/24/outline' interface DeactivateReferralLinkModalProps { open: boolean pending?: boolean linkPreview?: string fullUrl?: string onClose: () => void onConfirm: () => Promise | void } export default function DeactivateReferralLinkModal({ open, pending = false, linkPreview, fullUrl, onClose, onConfirm, }: DeactivateReferralLinkModalProps) { return (
Deactivate referral link?

This will immediately deactivate the selected referral link so it can no longer be used.

{linkPreview && (
Link
{linkPreview}
)}
) }