// End of third-party imports import { SupportCategories } from '@supabase/shared-types/out/constants' import { ChevronRight } from 'lucide-react' import Link from 'next/link' import type { UseFormReturn } from 'react-hook-form' import { Badge, Collapsible, CollapsibleContent, CollapsibleTrigger, FormField, Switch } from 'ui' import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import type { ExtendedSupportCategories } from './Support.constants' import type { SupportFormValues } from './SupportForm.schema' export const DISABLE_SUPPORT_ACCESS_CATEGORIES: ExtendedSupportCategories[] = [ SupportCategories.ACCOUNT_DELETION, SupportCategories.SALES_ENQUIRY, SupportCategories.REFUND, ] interface SupportAccessToggleProps { form: UseFormReturn align?: 'left' | 'right' className?: string } export function SupportAccessToggle({ form, align = 'left', className }: SupportAccessToggleProps) { return ( { return ( Allow support access to your project Recommended } description={
Human support and AI diagnostic access. More information

By enabling this, you grant permission for our support team to access your project temporarily and, if applicable, to use AI tools to assist in diagnosing and resolving issues. This access may involve analyzing database configurations, query performance, and other relevant data to expedite troubleshooting and enhance support accuracy.

We are committed to maintaining strict data privacy and security standards in all support activities.{' '} Privacy Policy

} >
) }} /> ) }