What is the age of consent in sharia law?

According to the mainstream Shia and Sunni schools of thought it is generally held to be puberty. This is because in Islam, someone who has reached puberty is an adult.