info.tsx 569 B

12345678910111213141516171819
  1. import React from 'react';
  2. import { Tooltip } from '@heroui/react';
  3. import { InformationCircleIcon } from "@heroicons/react/24/outline";
  4. export function InfoTip(props: {
  5. content: React.ReactNode
  6. }) {
  7. return (
  8. <Tooltip
  9. className="px-1.5 text-tiny text-default-600 rounded-small"
  10. content={props.content}
  11. placement="right"
  12. >
  13. <span className="transition-opacity opacity-80 hover:opacity-100">
  14. <InformationCircleIcon className="size-5" />
  15. </span>
  16. </Tooltip>
  17. )
  18. }