Yidadaa 2 years ago
parent aeb986243c
commit 708c6829f7

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

Loading…
Cancel
Save