import type { UseFormReturn } from 'react-hook-form' // End of third-party imports import { FormControl, FormField, TextArea } from 'ui' import { Admonition } from 'ui-patterns/Admonition' import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import { IPV4SuggestionAlert } from './IPV4SuggestionAlert' import { IPV4_MIGRATION_STRINGS } from './Support.constants' import type { SupportFormValues } from './SupportForm.schema' import { InlineLink } from '@/components/ui/InlineLink' const SUPPORT_REQUEST_TIPS_URL = 'https://supabase.com/kb/troubleshooting/formatting-support-requests-for-faster-resolution' const MESSAGE_MAX_LENGTH = 2500 const MESSAGE_PLACEHOLDER = 'What are you trying to do? What happened instead? What have you tried?' interface MessageFieldProps { form: UseFormReturn originalError: string | null | undefined } export function MessageField({ form, originalError }: MessageFieldProps) { return ( (

Short, specific requests get faster answers.{' '} Learn more

{IPV4_MIGRATION_STRINGS.some((str) => field.value.includes(str)) && ( )} } >