'use client' import { AssistantChatForm } from '@/components/AssistantChatForm' import { useAppStateSnapshot } from '@/lib/state' import { createClient } from '@/lib/supabase/client' const NewThreadInput = () => { const supabase = createClient() const snap = useAppStateSnapshot() return ( <>