Salary Component account guide

I’m having a hard time trying to create/link salary components to accounts on the chart of accounts. I have the following components:

Component Type Account
Basic Salary Earning
Transport Allowance Earning
Bonus Earning
*Statutory Deductions Deduction *I've created accounts under Duties and Taxes group in Liabilities*
Medical Aid (optional) Deduction

Now I don’t know how I should link other components, like basic salary, allowances, and other earnings. Can someone share what they have done with their setup?