config-param.tsx 631 B

12345678910111213141516171819202122232425
  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 mb-1'>
  13. <div className='py-1 system-sm-semibold text-text-secondary'>{title}</div>
  14. <Tooltip
  15. popupContent={
  16. <div className='max-w-[200px] system-sm-regular text-text-secondary'>{tooltip}</div>
  17. }
  18. />
  19. </div>
  20. <div>{children}</div>
  21. </div>
  22. )
  23. }