B2B-98: add package selection page (#26)
* B2B-98: add packages * B2B-98: add packages * rename page * use config path instead of hardcoded * add link to successful registration --------- Co-authored-by: Helena <helena@Helenas-MacBook-Pro.local>
This commit is contained in:
31
components/ui/button-tooltip.tsx
Normal file
31
components/ui/button-tooltip.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Info } from 'lucide-react';
|
||||
|
||||
import { Button } from '@kit/ui/button';
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipProvider,
|
||||
TooltipTrigger,
|
||||
} from '@kit/ui/tooltip';
|
||||
|
||||
export function ButtonTooltip({
|
||||
content,
|
||||
className,
|
||||
}: {
|
||||
content?: string;
|
||||
className?: string;
|
||||
}) {
|
||||
if (!content) return null;
|
||||
return (
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button className={className} variant="outline" size="icon">
|
||||
<Info className="size-4 cursor-pointer" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>{content}</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user