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 { DeployChatButton } from './DeployChatButton'; export function Header() { const chatStarted = useStore(chatStore.started); return (
logo
{chatStarted && ( {() => } )} {chatStarted && ( {() => } )}
{chatStarted && ( {() => (
)}
)}
{() => ( }> )}
); }