Solar PV panels typically have a design life of over 25 years. Product warranties are typically 12 years, with a linear performance warranty of 20 to 25 years, depending on the manufacturer.
Inverters have a design life of 10 to 20 years depending on the manufacturer. Product warranties are 10 years and up.
Batteries have a design life based on charge/discharge cycles which range from 5000 to 10000, with a time-based limit of
10 years usually applying. Depending on the manufacturer, the battery will be warrantied to have from 60% to 70% of its capacity after 10 years, but can be expected to continue operating after that.