mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
import * as React from 'react';
|
|
|
|
import { AppLinkChat } from '../../../src/apps/link-chat/AppLinkChat';
|
|
|
|
import { useRouterQuery } from '~/common/app.routes';
|
|
import { withNextJSPerPageLayout } from '~/common/layout/withLayout';
|
|
|
|
|
|
export default withNextJSPerPageLayout({ type: 'optima', suspendAutoModelsSetup: true }, () => {
|
|
|
|
// external state
|
|
const { chatLinkId } = useRouterQuery<{ chatLinkId: string | undefined }>();
|
|
|
|
return <AppLinkChat chatLinkId={chatLinkId || null} />;
|
|
|
|
}); |