import { useStore } from '@nanostores/react'; import classNames from 'classnames'; import { ClientOnly } from 'remix-utils/client-only'; import { useAuth } from '~/lib/hooks'; import { aiState } from '~/lib/stores/ai-state'; import { HistorySwitch } from '../sidebar/HistorySwitch'; import { ThemeSwitch } from '../ui/ThemeSwitch'; import { ChatDescription } from './ChatDescription'; import { HeaderActionButtons } from './HeaderActionButtons'; import { MinimalAvatarDropdown } from './MinimalAvatarDropdown'; export function Header() { const { isAuthenticated } = useAuth(); const { chatStarted } = useStore(aiState); return ( <>
UPage
{isAuthenticated && }
{chatStarted && {() => }}
{chatStarted && ( <> {() => (
)}
)}
); }