mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 05:14:45 +08:00
26 lines
700 B
TypeScript
26 lines
700 B
TypeScript
"use client";
|
|
|
|
import { useI18n } from "@/core/i18n/hooks";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export function Welcome({ className }: { className?: string }) {
|
|
const { t } = useI18n();
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"mx-auto flex w-full flex-col items-center justify-center gap-2 px-8 py-4 text-center",
|
|
className,
|
|
)}
|
|
>
|
|
<div className="text-2xl font-bold">{t.welcome.greeting}</div>
|
|
<div className="text-muted-foreground text-sm">
|
|
{t.welcome.description.includes("\n") ? (
|
|
<pre className="whitespace-pre">{t.welcome.description}</pre>
|
|
) : (
|
|
<p>{t.welcome.description}</p>
|
|
)}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|