why is this erroring?

function Post( { image, name }) {
    return (
        <li className='post-component'>
            const handleClick = (event) => {
                return console.log(event)
            }
            
            <button onClick={handleClick}>
                <img src={image} alt={name} />
                <p className="post-name">{name}</p>
            </button>

        </li>
    )
}

export default Post;