mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 04:14:46 +08:00
feat: update workspace header to conditionally render title based on environment variable
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
|||||||
useSidebar,
|
useSidebar,
|
||||||
} from "@/components/ui/sidebar";
|
} from "@/components/ui/sidebar";
|
||||||
import { useI18n } from "@/core/i18n/hooks";
|
import { useI18n } from "@/core/i18n/hooks";
|
||||||
|
import { env } from "@/env";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export function WorkspaceHeader({ className }: { className?: string }) {
|
export function WorkspaceHeader({ className }: { className?: string }) {
|
||||||
@@ -35,9 +36,15 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex items-center justify-between gap-2">
|
<div className="flex items-center justify-between gap-2">
|
||||||
<Link href="/" className="text-primary ml-2 font-serif">
|
{env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? (
|
||||||
DeerFlow
|
<Link href="/" className="text-primary ml-2 font-serif">
|
||||||
</Link>
|
DeerFlow
|
||||||
|
</Link>
|
||||||
|
) : (
|
||||||
|
<div className="text-primary ml-2 cursor-default font-serif">
|
||||||
|
DeerFlow
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<SidebarTrigger />
|
<SidebarTrigger />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user