status-item.tsx 547 B

1234567891011121314151617181920212223
  1. import React, { type FC } from 'react'
  2. import { RiCheckLine } from '@remixicon/react'
  3. import type { Item } from '@/app/components/base/select'
  4. type IStatusItemProps = {
  5. item: Item
  6. selected: boolean
  7. }
  8. const StatusItem: FC<IStatusItemProps> = ({
  9. item,
  10. selected,
  11. }) => {
  12. return (
  13. <div className='flex items-center justify-between py-1.5 px-2'>
  14. <span className='system-md-regular'>{item.name}</span>
  15. {selected && <RiCheckLine className='w-4 h-4 text-text-accent' />}
  16. </div>
  17. )
  18. }
  19. export default React.memo(StatusItem)