import { Flex, Heading, View } from '@aws-amplify/ui-react'; import classNames from 'classnames'; import { SiTypescript } from 'react-icons/si'; import { MdOutlineFlashOff, MdOutlineSupport } from 'react-icons/md'; import { HomeCTA } from '@/components/home/HomeCTA'; import { HomeFeatureCard } from '@/components/home/HomeFeatureCard'; import { useIntersectionObserver } from '@/components/useIntersection'; import { useRef } from 'react'; import { trackScroll } from '@/utils/track'; export const CompatibleSection = ({ platform }) => { const ref = useRef(null); const entry = useIntersectionObserver(ref, { threshold: 0.125, freezeOnceVisible: true, }); const isVisible = !!entry?.isIntersecting; if (isVisible) { trackScroll('Home#Compatible'); } return ( Compatible with your front-end Connected components like the Authenticator have headless, or UI-less, implementations that handle complex state management and leave the UI up to you. {platform === 'react-native' ? null : ( Don‘t like our style? Throw it out and use your own! Amplify UI components use plain CSS so you have complete control over the styling. )} Let your IDE do the work for you and make UI development a breeze with strongly typed interfaces and inline documentation. Learn more about Amplify UI‘s design philosophy ); };