mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 13:24:44 +08:00
feat: integrated with artifacts in states
This commit is contained in:
@@ -24,12 +24,13 @@ export function ArtifactFileList({
|
||||
files: string[];
|
||||
threadId: string;
|
||||
}) {
|
||||
const { openArtifact } = useArtifacts();
|
||||
const { select: selectArtifact, setOpen } = useArtifacts();
|
||||
const handleClick = useCallback(
|
||||
(filepath: string) => {
|
||||
openArtifact(filepath);
|
||||
selectArtifact(filepath);
|
||||
setOpen(true);
|
||||
},
|
||||
[openArtifact],
|
||||
[selectArtifact, setOpen],
|
||||
);
|
||||
return (
|
||||
<ul className={cn("flex w-full flex-col gap-4", className)}>
|
||||
|
||||
Reference in New Issue
Block a user