This commit is contained in:
lloydzhou
2024-08-30 23:39:08 +08:00
parent 271f58d9cf
commit 9326ff9d08
10 changed files with 47 additions and 28 deletions

View File

@@ -19,7 +19,7 @@ import {
HTMLPreview,
HTMLPreviewHander,
} from "./artifacts";
import { Plugin } from "../constant";
import { ArtifactsPlugin } from "../constant";
import { useChatStore } from "../store";
import { IconButton } from "./button";
@@ -95,7 +95,7 @@ export function PreCode(props: { children: any }) {
}, 600);
const enableArtifacts = useMemo(
() => plugins?.includes(Plugin.Artifacts),
() => plugins?.includes(ArtifactsPlugin.Artifacts),
[plugins],
);