import { Button } from "@/src/components/ui/button"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription, DialogPortal, DialogBody, } from "@/src/components/ui/dialog"; import { useState } from "react"; import Link from "next/link"; import { Bug, Sparkles } from "lucide-react"; interface FeedbackDialogProps { className?: string; children: React.ReactNode; title?: string; description?: string; } export function FeedbackButtonWrapper({ className, children, description = "What do you think about Langfuse? What can be improved? Please share it with the community on GitHub to shape the future of Langfuse.", title = "Provide Feedback", }: FeedbackDialogProps) { const [open, setOpen] = useState(false); return ( e.stopPropagation()} > {children} {title} {description}
); }