|
@@ -23,7 +23,6 @@ import {
|
|
} from "react-router-dom";
|
|
} from "react-router-dom";
|
|
import { SideBar } from "./sidebar";
|
|
import { SideBar } from "./sidebar";
|
|
import { useAppConfig } from "../store/config";
|
|
import { useAppConfig } from "../store/config";
|
|
-import { NewChat } from "./new-chat";
|
|
|
|
|
|
|
|
export function Loading(props: { noLogo?: boolean }) {
|
|
export function Loading(props: { noLogo?: boolean }) {
|
|
return (
|
|
return (
|
|
@@ -42,6 +41,10 @@ const Chat = dynamic(async () => (await import("./chat")).Chat, {
|
|
loading: () => <Loading noLogo />,
|
|
loading: () => <Loading noLogo />,
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+const NewChat = dynamic(async () => (await import("./new-chat")).NewChat, {
|
|
|
|
+ loading: () => <Loading noLogo />,
|
|
|
|
+});
|
|
|
|
+
|
|
export function useSwitchTheme() {
|
|
export function useSwitchTheme() {
|
|
const config = useAppConfig();
|
|
const config = useAppConfig();
|
|
|
|
|