Upvote:2
Like every other country, Moroccan Customs will assess import duty for stuff brought into the country. This page - a non-governmental source β suggests that the average duty on electronics is 20% of the value of the item(s) imported. 20% of οΏ‘4500 equals οΏ‘900. I do not know if this is the same duty rate as would be assessed against electronic parts, but it does indicate that Moroccan law sees value in electronic material.
Most countries allow an exemption for a certain value of stuff brought into the county by a returning citizen or resident; this value is exempt from duty. I have no idea if an exempt amount exists under Moroccan law, and if it does, what the exemption amount might be. If the returning traveler carries more than the exempt amount of something, many countries assess duty against the entire amount, not just the amount beyond the exemption.
Customs' job is to assess duty. Upon arrival you will be asked if you have "anything to declare," that is, if you're bringing anything on which duty should be assessed. If you do not declare the items you're bringing in, and they examine your baggage and discover this stuff, then you will have been caught lying. That could result in any or all of these: the assessment of duty, the confiscation of the material, a fine, or a criminal charge against you.