index.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import React from 'react'
  2. import { Variable02 } from '../icons/src/vender/solid/development'
  3. import VerticalLine from './vertical-line'
  4. import HorizontalLine from './horizontal-line'
  5. type ListEmptyProps = {
  6. title?: string
  7. description?: React.ReactNode
  8. }
  9. const ListEmpty = ({
  10. title,
  11. description,
  12. }: ListEmptyProps) => {
  13. return (
  14. <div className='flex w-[320px] p-4 flex-col items-start gap-2 rounded-[10px] bg-workflow-process-bg'>
  15. <div className='flex w-10 h-10 justify-center items-center gap-2 rounded-[10px]'>
  16. <div className='flex relative p-1 justify-center items-center gap-2 grow self-stretch rounded-[10px]
  17. border-[0.5px] border-components-card-border bg-components-card-bg shadow-lg'>
  18. <Variable02 className='w-5 h-5 shrink-0 text-text-accent' />
  19. <VerticalLine className='absolute -right-[1px] top-1/2 -translate-y-1/4'/>
  20. <VerticalLine className='absolute -left-[1px] top-1/2 -translate-y-1/4'/>
  21. <HorizontalLine className='absolute top-0 left-3/4 -translate-x-1/4 -translate-y-1/2'/>
  22. <HorizontalLine className='absolute top-full left-3/4 -translate-x-1/4 -translate-y-1/2' />
  23. </div>
  24. </div>
  25. <div className='flex flex-col items-start gap-1 self-stretch'>
  26. <div className='text-text-secondary system-sm-medium'>{title}</div>
  27. {description}
  28. </div>
  29. </div>
  30. )
  31. }
  32. export default ListEmpty