This tutorial repo registers a "Click to Tweet" block. The block shows an example tweet about the blog post and allows the user to click to tweet the message.
The block uses Open AI to generate a tweet message by defining an OpenAI API key in your wp-config.php
file.
define( 'OPENAI_KEY', 'sk-XXXXXXXXXXXXXXXXXXXXXXXX' );
Coming soon!