MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / Feature

Function Feature

src/components/HomepageFeatures/index.tsx:72–90  ·  view source on GitHub ↗
({ Svg, description, lottieAnimation }: FeatureItem)

Source from the content-addressed store, hash-verified

70];
71
72function 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
92export default function HomepageFeatures(): JSX.Element {
93 const isJapanese = useIsJapanese();

Callers

nothing calls this directly

Calls 1

usePrefersReducedMotionFunction · 0.90

Tested by

no test coverage detected