mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
24 lines
705 B
TypeScript
24 lines
705 B
TypeScript
import { json, type MetaFunction } from '~/lib/remix-types';
|
|
import { Suspense } from 'react';
|
|
import { ClientOnly } from 'remix-utils/client-only';
|
|
import { BaseChat } from '~/components/chat/BaseChat/BaseChat';
|
|
import { Chat } from '~/components/chat/ChatComponent/Chat.client';
|
|
import { PageContainer } from '~/layout/PageContainer';
|
|
export const meta: MetaFunction = () => {
|
|
return [{ title: 'Nut' }];
|
|
};
|
|
|
|
export const loader = () => json({});
|
|
|
|
const Nothing = () => null;
|
|
|
|
export default function Index() {
|
|
return (
|
|
<PageContainer>
|
|
<Suspense fallback={<Nothing />}>
|
|
<ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
|
|
</Suspense>
|
|
</PageContainer>
|
|
);
|
|
}
|