Passing an object to a component as prop

The PersonCard Component recieves props object which includes the person object inside it.

export default function PersonCard({person})
{
    return (
      <>
        {console.log(person)}
      </>
    )
}

OR

export default function PersonCard(props)
{
    return (
      <>
        {console.log(props.person)}
      </>
    )
}