mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 19:06:12 +00:00
24 lines
834 B
TypeScript
24 lines
834 B
TypeScript
import type { LoaderFunctionArgs } from '@remix-run/cloudflare';
|
|
import { json, type MetaFunction } from '@remix-run/cloudflare';
|
|
import { ClientOnly } from 'remix-utils/client-only';
|
|
import { BaseChat } from '~/components/chat/BaseChat';
|
|
import { GitUrlImport } from '~/components/git/GitUrlImport.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 async function loader(args: LoaderFunctionArgs) {
|
|
return json({ url: args.params.url });
|
|
}
|
|
|
|
export default function Index() {
|
|
return (
|
|
<div className="flex flex-col h-full w-full">
|
|
<Header />
|
|
<ClientOnly fallback={<BaseChat />}>{() => <GitUrlImport />}</ClientOnly>
|
|
</div>
|
|
);
|
|
}
|