import { IUser } from '@/types/user'
import { useAtom } from 'jotai'
import { useStyle } from './style.ts'
import { Checkbox } from 'antd'

export const Item = ( props: {
  value: IUser,
  onChange:( value: IUser)=>void
} )=>{

  const { styles } = useStyle()


  return (
    <div className={styles.listItem}>
      <Checkbox value={props.value} onChange={e=>}>
        <span>{props.value.name}</span>
      </Checkbox>
    </div>
  )

}