config-param.tsx 637 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: React.JSX.Element }> = ({
  6. title,
  7. tooltip,
  8. children,
  9. }) => {
  10. return (
  11. <div>
  12. <div className='mb-1 flex items-center space-x-1'>
  13. <div className='system-sm-semibold py-1 text-text-secondary'>{title}</div>
  14. <Tooltip
  15. popupContent={
  16. <div className='system-sm-regular max-w-[200px] text-text-secondary'>{tooltip}</div>
  17. }
  18. />
  19. </div>
  20. <div>{children}</div>
  21. </div>
  22. )
  23. }