mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +00:00
21 lines
684 B
TypeScript
21 lines
684 B
TypeScript
import { json, type MetaFunction } from '@remix-run/cloudflare';
|
|
import { ClientOnly } from 'remix-utils/client-only';
|
|
import { BaseChat } from '~/components/chat/BaseChat';
|
|
import { Chat } from '~/components/chat/Chat.client';
|
|
import { Header } from '~/components/header/Header';
|
|
|
|
export const meta: MetaFunction = () => {
|
|
return [{ title: 'Bolt' }, { name: 'description', content: 'Talk with Bolt, an AI assistant from StackBlitz' }];
|
|
};
|
|
|
|
export const loader = () => json({});
|
|
|
|
export default function Index() {
|
|
return (
|
|
<div className="flex flex-col h-full w-full">
|
|
<Header />
|
|
<ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
|
|
</div>
|
|
);
|
|
}
|