mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 05:14:45 +08:00
feat: implement basic web app
This commit is contained in:
23
frontend/src/components/workspace/tooltip.tsx
Normal file
23
frontend/src/components/workspace/tooltip.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
Tooltip as TooltipPrimitive,
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
} from "@/components/ui/tooltip";
|
||||
|
||||
export function Tooltip({
|
||||
children,
|
||||
content,
|
||||
...props
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
content?: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<TooltipPrimitive {...props}>
|
||||
<TooltipTrigger asChild>{children}</TooltipTrigger>
|
||||
<TooltipContent className="shadow">{content}</TooltipContent>
|
||||
</TooltipPrimitive>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user