The S-corp shareholder's compensation is the amount reported on the shareholder's W-2 from the S corp. It's what the S corp paid the shareholder in wages or salary.
S corp shareholders receive a W-2, not a Form 1099-NEC or 1099-MISC. S-corp shareholders are employees of the S corp. They are not self-employed.
If this is your first year having an S corp, you should get professional help. Making mistakes with an S corp can be quite costly.