mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-25 15:04:46 +08:00
feat: link to home page
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
import { SidebarTrigger, useSidebar } from "@/components/ui/sidebar";
|
import { SidebarTrigger, useSidebar } from "@/components/ui/sidebar";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export function WorkspaceHeader({ className }: { className?: string }) {
|
export function WorkspaceHeader({ className }: { className?: string }) {
|
||||||
const { state } = useSidebar();
|
const { state } = useSidebar();
|
||||||
return (
|
return (
|
||||||
|
<Link href="/workspace">
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"group/workspace-header flex h-15 flex-col justify-center",
|
"group/workspace-header flex h-15 flex-col justify-center",
|
||||||
@@ -26,5 +29,6 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user