The 'Single checkbox' element can be used for asking for publication consent
Add the question from the element library.
Write the question or header for the checkbox in Question label. Write the text you want to show next to the checkbox in Checkbox text. You can make checking the box mandatory.