mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
28 lines
843 B
TypeScript
28 lines
843 B
TypeScript
import { json, type MetaFunction } from '@remix-run/cloudflare';
|
|
import { Suspense } from 'react';
|
|
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';
|
|
import BackgroundRays from '~/components/ui/BackgroundRays';
|
|
|
|
export const meta: MetaFunction = () => {
|
|
return [{ title: 'Nut' }];
|
|
};
|
|
|
|
export const loader = () => json({});
|
|
|
|
const Nothing = () => null;
|
|
|
|
export default function Index() {
|
|
return (
|
|
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
|
|
<BackgroundRays />
|
|
<Header />
|
|
<Suspense fallback={<Nothing />}>
|
|
<ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
|
|
</Suspense>
|
|
</div>
|
|
);
|
|
}
|