Your requirements not really clear, but I'll try to answer according to the question.
You can't restrict access Edit to Components, you can either see them or not.
If you want to limit somewhat editability you can put them into Unlocked or Second-generation Package and it would allow you to return to the initial state at any moment.
Also would suggest using Version Control to track who changed what
You can also create Managed Package and it will prevent the editability of your components, but I don't know if you want to distribute your code.