feat: initialize TJWater WebGIS frontend

This commit is contained in:
2026-07-21 18:31:08 +08:00
commit ad5e5d3133
191 changed files with 37963 additions and 0 deletions
@@ -0,0 +1,36 @@
"use client";
import { cn } from "@/lib/utils";
import { MessageResponse } from "@/shared/ai-elements/message";
type StreamingTokenResponseProps = {
content: string;
streaming: boolean;
streamDone?: boolean;
className?: string;
messageId?: string;
};
export function StreamingTokenResponse({
content,
streaming,
streamDone = !streaming,
className,
}: StreamingTokenResponseProps) {
if (!content) {
return null;
}
const isAnimating = streaming && !streamDone;
return (
<MessageResponse
className={cn("agent-streaming-response", className)}
isAnimating={isAnimating}
mode="streaming"
parseIncompleteMarkdown={true}
>
{content}
</MessageResponse>
);
}