({ Svg, description, lottieAnimation }: FeatureItem)
| 70 | ]; |
| 71 | |
| 72 | function Feature({ Svg, description, lottieAnimation }: FeatureItem) { |
| 73 | const prefersReducedMotion = usePrefersReducedMotion(); |
| 74 | |
| 75 | return ( |
| 76 | <div className={clsx(styles.card)}> |
| 77 | {prefersReducedMotion ? ( |
| 78 | <Svg className={styles.featureImage} aria-hidden={true} /> |
| 79 | ) : ( |
| 80 | <Lottie |
| 81 | animationData={lottieAnimation} |
| 82 | loop={true} |
| 83 | className={styles.featureAnimation} |
| 84 | /> |
| 85 | )} |
| 86 | |
| 87 | <p className="type-paragraph-large">{description}</p> |
| 88 | </div> |
| 89 | ); |
| 90 | } |
| 91 | |
| 92 | export default function HomepageFeatures(): JSX.Element { |
| 93 | const isJapanese = useIsJapanese(); |
nothing calls this directly
no test coverage detected