({items, titleKey = 'onboarding_faq_title'})
| 12 | ]); |
| 13 | |
| 14 | export default function FAQSidebar({items, titleKey = 'onboarding_faq_title'}) { |
| 15 | return ( |
| 16 | <div className="col-lg-4 col-xl-3"> |
| 17 | <h5 className="bg-light border-bottom p-2 mb-3 font-weight-bold">{l10n.map[titleKey]}</h5> |
| 18 | <ul className="list-unstyled px-2"> |
| 19 | {items.map(item => ( |
| 20 | <li key={item.url}> |
| 21 | <a href={item.url} target="_blank" rel="noopener noreferrer" className="d-block mb-2 text-primary text-decoration-none"> |
| 22 | {item.label} |
| 23 | </a> |
| 24 | </li> |
| 25 | ))} |
| 26 | </ul> |
| 27 | </div> |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | FAQSidebar.propTypes = { |
| 32 | items: PropTypes.arrayOf(PropTypes.shape({ |
nothing calls this directly
no outgoing calls
no test coverage detected