mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 19:28:23 +00:00
feat: use create skill as title
This commit is contained in:
parent
e4939216fd
commit
dc1190b228
@ -1,10 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { useSearchParams } from "next/navigation";
|
||||
|
||||
import { useI18n } from "@/core/i18n/hooks";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function Welcome({ className }: { className?: string }) {
|
||||
const { t } = useI18n();
|
||||
const searchParams = useSearchParams();
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
@ -12,7 +15,11 @@ export function Welcome({ className }: { className?: string }) {
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="text-2xl font-bold">{t.welcome.greeting}</div>
|
||||
<div className="text-2xl font-bold">
|
||||
{searchParams.get("mode") === "skill"
|
||||
? `🚀 ${t.settings.skills.createSkill}`
|
||||
: t.welcome.greeting}
|
||||
</div>
|
||||
<div className="text-muted-foreground text-sm">
|
||||
{t.welcome.description.includes("\n") ? (
|
||||
<pre className="whitespace-pre">{t.welcome.description}</pre>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user