-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProcessDisclaimer.tsx
37 lines (35 loc) · 1.05 KB
/
ProcessDisclaimer.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {
TooltipProvider,
Tooltip,
TooltipTrigger,
TooltipContent,
} from "@/components/ui/tooltip";
import { InfoIcon } from "lucide-react";
export default function ProcessDisclaimer({
processName,
feedbackMessage = true,
}: {
processName: "injection" | "extraction";
feedbackMessage?: boolean;
}) {
return (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<InfoIcon size={16} className="ml-4 h-4 w-4" />
</TooltipTrigger>
<TooltipContent>
<p className="text-[12px]">
The {processName} may occasionally produce errors.{" "}
</p>
{feedbackMessage && (
<p className="text-[12px]">
Please report any! Your feedback is really valuable
to us.
</p>
)}
</TooltipContent>
</Tooltip>
</TooltipProvider>
);
}