import { Activity, BookOpen, HelpCircle, Mail, MessageCircle, Wrench } from 'lucide-react' import Image from 'next/legacy/image' import Link from 'next/link' import { useRouter } from 'next/router' import SVG from 'react-inlinesvg' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { useSendEventMutation } from 'data/telemetry/send-event-mutation' import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization' import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state' import { AiIconAnimation, Button, ButtonGroup, ButtonGroupItem, Popover, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_, } from 'ui' import { useProjectContext } from '../ProjectContext' export const HelpPopover = () => { const router = useRouter() const { project } = useProjectContext() const org = useSelectedOrganization() const snap = useAiAssistantStateSnapshot() const { mutate: sendEvent } = useSendEventMutation() const projectRef = project?.parent_project_ref ?? router.query.ref const supportUrl = `/support/new${projectRef ? `?projectRef=${projectRef}` : ''}` return ( } tooltip={{ content: { side: 'bottom', text: 'Help' } }} onClick={() => { sendEvent({ action: 'help_button_clicked', groups: { project: project?.ref, organization: org?.slug }, }) }} />
Need help with your project?

For issues with your project hosted on supabase.com or other hosted service inquiries. Response times are based on your billing plan, with paid plans prioritized.

{projectRef && ( } onClick={() => { snap.newChat({ name: 'Support', open: true, initialInput: `I need help with my project`, suggestions: { title: 'I can help you with your project, here are some example prompts to get you started:', prompts: [ 'Summarise my database health and performance', 'View and debug my edge function logs', 'Implement row level security for my tables', ], }, }) }} > Supabase Assistant )} } asChild> Troubleshooting } asChild> Docs } asChild> Supabase Status }> Contact Support
Reach out to the community

For other support, including questions on our client libraries, advice, or best practices.

) }