mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
feat: use create skill as title
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user