diff --git a/.gitignore b/.gitignore index 0403203..c3b9e3c 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,9 @@ gcpdeploy.md .env* gcpdeploy.md deploy.sh +todo.md +.agent/* + .agent/* # local install diff --git a/src/components/common/Tooltip.tsx b/src/components/common/Tooltip.tsx new file mode 100644 index 0000000..11287f1 --- /dev/null +++ b/src/components/common/Tooltip.tsx @@ -0,0 +1,50 @@ +import React from 'react'; +import * as TooltipPrimitive from '@radix-ui/react-tooltip'; +import { HelpCircle, Info } from 'lucide-react'; + +interface TooltipProps { + content: React.ReactNode; + children?: React.ReactNode; + icon?: 'help' | 'info'; + className?: string; +} + +const Tooltip: React.FC = ({ content, children, icon = 'help', className = '' }) => { + return ( + + + + {children ? ( + + {children} + + ) : ( + + )} + + + + {content} + + + + + + ); +}; + +export default Tooltip;