import { useStore } from '@nanostores/react'; import { ClientOnly } from 'remix-utils/client-only'; import { chatStore } from '~/lib/stores/chat'; import { classNames } from '~/utils/classNames'; import { HeaderActionButtons } from './HeaderActionButtons.client'; import { ChatDescription } from '~/lib/persistence/ChatDescription.client'; import { Feedback } from './Feedback'; import { Suspense } from 'react'; import { ClientAuth } from '~/components/auth/ClientAuth'; import { shouldUseSupabase } from '~/lib/supabase/client'; export function Header() { const chat = useStore(chatStore); return (
logo
{chat.started && ( {() => } )}
{chat.started && ( {() => (
)}
)}
{shouldUseSupabase() && ( {() => ( }> )} )}
); }