Code for button

Hi, i need code for button - so that this button can only be viewed by the author of the matter on a dynamic page, can anyone please show me the code?

like this:

Something like this:

const userID = wixUsers.currentUser.id;
const ownerID = $w("#yourDatasetID").getCurrentItem()._owner; 

if(userID === ownerID) {

Of course you’ll need to insert your dataset’s ID where it says yourDatasetID.