config-param.tsx 585 B

123456789101112131415161718192021222324
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import Tooltip from '@/app/components/base/tooltip'
  5. export const Item: FC<{ title: string; tooltip: string; children: JSX.Element }> = ({
  6. title,
  7. tooltip,
  8. children,
  9. }) => {
  10. return (
  11. <div>
  12. <div className='flex items-center space-x-1'>
  13. <div>{title}</div>
  14. <Tooltip
  15. popupContent={
  16. <div className='max-w-[200px] leading-[18px] text-[13px] font-medium text-gray-800'>{tooltip}</div>
  17. }
  18. />
  19. </div>
  20. <div>{children}</div>
  21. </div>
  22. )
  23. }