State.init({ isVisible: false }); const Wrapper = styled.div` .content-image { width: 100%; } `; if (props.post.id !== "1691462269182611456") { return <></>; } return ( <Wrapper> {state.isVisible ? ( <img className="content-image" onClick={() => State.update({ isVisible: false })} src={`https://miscellaneous.s3-website.fr-par.scw.cloud/web3hackfest-2023/${props.post.id}-original.png`} /> ) : ( <img className="content-image" onClick={() => State.update({ isVisible: true })} src={`https://miscellaneous.s3-website.fr-par.scw.cloud/web3hackfest-2023/${props.post.id}-blur.png`} /> )} </Wrapper> );