({ title, link, Svg, description }: FeatureItem)
| 32 | ]; |
| 33 | |
| 34 | function Feature({ title, link, Svg, description }: FeatureItem) { |
| 35 | const history = useHistory(); |
| 36 | return ( |
| 37 | <div |
| 38 | className={clsx("col col--4") + ` ${styles.featureItem}`} |
| 39 | onClick={() => history.push(link)} |
| 40 | > |
| 41 | <div className="text--center"> |
| 42 | <Svg className={styles.featureSvg} role="img" /> |
| 43 | </div> |
| 44 | <div className="text--center padding-horiz--md"> |
| 45 | <h3>{title}</h3> |
| 46 | <p>{description}</p> |
| 47 | </div> |
| 48 | </div> |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | export default function HomepageFeatures(): JSX.Element { |
| 53 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected