That’s not how ECC works. ECC cannot do encryption and decryption directly like RSA. You need something like ECDH or ECIES in combination with a symmetric encryption algorithm.
Do you have a library where I can plug in an ECC public key, and a message, and get out an encrypted text that can be decrypted with the ECC private key?