info-panel.tsx 595 B

12345678910111213141516171819202122232425262728
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. type Props = {
  5. title: string
  6. content: string | JSX.Element
  7. }
  8. const InfoPanel: FC<Props> = ({
  9. title,
  10. content,
  11. }) => {
  12. return (
  13. <div>
  14. <div className='px-[5px] py-[3px] bg-workflow-block-parma-bg rounded-md'>
  15. <div className='text-text-secondary system-2xs-semibold-uppercase uppercase'>
  16. {title}
  17. </div>
  18. <div className='text-text-tertiary system-xs-regular break-words'>
  19. {content}
  20. </div>
  21. </div>
  22. </div>
  23. )
  24. }
  25. export default React.memo(InfoPanel)